[asterisk-addons-commits] qwell: trunk r504 - in /trunk: ./ Makefile

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Wed Jan 16 12:07:03 CST 2008


Author: qwell
Date: Wed Jan 16 12:07:03 2008
New Revision: 504

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=504
Log:
Add logging for 'make update' command (also fixes updates in some places).  Issue #11766, initial patch by jmls.

Modified:
    trunk/   (props changed)
    trunk/Makefile

Propchange: trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Jan 16 12:07:03 2008
@@ -8,3 +8,4 @@
 .depend
 menuselect.makeopts
 menuselect.makedeps
+update.log

Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk-addons/trunk/Makefile?view=diff&rev=504&r1=503&r2=504
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Wed Jan 16 12:07:03 2008
@@ -184,7 +184,16 @@
 update:
 	@if [ -d .svn ]; then \
 		echo "Updating from Subversion..." ; \
-		svn update -q; \
+		fromrev="`svn info | $(AWK) '/Revision: / {print $$2}'`"; \
+		svn update | tee update.out; \
+		torev="`svn info | $(AWK) '/Revision: / {print $$2}'`"; \
+		echo "`date`  Updated from revision $${fromrev} to $${torev}." >> update.log; \
+		rm -f .version; \
+		if [ `grep -c ^C update.out` -gt 0 ]; then \
+			echo ; echo "The following files have conflicts:" ; \
+			grep ^C update.out | cut -b4- ; \
+		fi ; \
+		rm -f update.out; \
 	else \
 		echo "Not under version control"; \
 	fi




More information about the asterisk-addons-commits mailing list