Add logging for 'make update' command (also fixes updates in some places). Issue...
authorJason Parker <jparker@digium.com>
Wed, 16 Jan 2008 18:06:14 +0000 (18:06 +0000)
committerJason Parker <jparker@digium.com>
Wed, 16 Jan 2008 18:06:14 +0000 (18:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98968 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index 19c385e..5127e3f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -474,7 +474,10 @@ datafiles: _all
 update: 
        @if [ -d .svn ]; then \
                echo "Updating from Subversion..." ; \
+               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:" ; \