[MPlayer-cvslog] r28728 - trunk/version.sh

diego subversion at mplayerhq.hu
Wed Feb 25 00:15:26 CET 2009


Author: diego
Date: Wed Feb 25 00:15:26 2009
New Revision: 28728

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	Wed Feb 25 00:01:06 2009	(r28727)
+++ trunk/version.sh	Wed Feb 25 00:15:26 2009	(r28728)
@@ -2,7 +2,10 @@
 
 test "$1" && extra="-$1"
 
-svn_revision=$(LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
+# Extract revision number from file used by daily tarball snapshots
+# or from the places different Subversion versions have it.
+svn_revision=$(cat snapshot_version 2> /dev/null)
+test $svn_revision || svn_revision=$(LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
 test $svn_revision || svn_revision=$(grep revision .svn/entries 2>/dev/null | cut -d '"' -f2)
 test $svn_revision || svn_revision=$(sed -n -e '/^dir$/{n;p;q;}' .svn/entries 2>/dev/null)
 test $svn_revision || svn_revision=UNKNOWN



More information about the MPlayer-cvslog mailing list