From: Jason Parker Date: Wed, 16 Jan 2008 18:06:14 +0000 (+0000) Subject: Add logging for 'make update' command (also fixes updates in some places). Issue... X-Git-Tag: 1.6.0-beta1~3^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34f7805ba6f033390ee5d4f70af7b22ffbedbbc5;p=thirdparty%2Fasterisk.git Add logging for 'make update' command (also fixes updates in some places). Issue #11766, initial patch by jmls. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98968 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index 19c385e8c2..5127e3fd0b 100644 --- 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:" ; \