[FFmpeg-cvslog] r17577 - trunk/version.sh

diego subversion
Wed Feb 25 00:04:52 CET 2009


Author: diego
Date: Wed Feb 25 00:04:52 2009
New Revision: 17577

Log:
Read revision string from the file snapshot_version if available.
This will be used by daily snapshots without Subversion metadata.

Modified:
   trunk/version.sh

Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	Tue Feb 24 23:54:58 2009	(r17576)
+++ trunk/version.sh	Wed Feb 25 00:04:52 2009	(r17577)
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 # check for SVN revision number
-revision=$(cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
+revision=$(cat snapshot_version)
+test $revision || revision=$(cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
 test $revision || revision=$(cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2)
 test $revision || revision=$(cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null)
 test $revision && revision=SVN-r$revision




More information about the ffmpeg-cvslog mailing list