summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-12-29 23:52:42 +0000
committerMark Spencer <markster@digium.com>2004-12-29 23:52:42 +0000
commitcc015174898b9ebed02694588d1497e6f18ad5df (patch)
tree0fd84a5f9d7dc57deffc5e6d1d0d7fa5475daddd /Makefile
parentccead56701655050a18b883e024ae7a74325373e (diff)
Show conflits on make update (bug #3191)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c3eeac4b7..34b017bfa 100755
--- a/Makefile
+++ b/Makefile
@@ -382,8 +382,13 @@ datafiles: all
update:
@if [ -d CVS ]; then \
echo "Updating from CVS..." ; \
- cvs -q -z3 update -Pd; \
+ cvs -q -z3 update -Pd | tee update.out; \
rm -f .version; \
+ if [ `grep -c ^C update.out` -gt 0 ]; then \
+ echo ; echo "The following files have conflicts:" ; \
+ grep ^C update.out | cut -d' ' -f2- ; \
+ fi ; \
+ rm -f update.out; \
else \
echo "Not CVS"; \
fi