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

rathann subversion at mplayerhq.hu
Tue Jun 6 12:42:30 CEST 2006


Author: rathann
Date: Tue Jun  6 12:42:30 2006
New Revision: 18594

Modified:
   trunk/version.sh

Log:
Put SVN revision in the version string
Note: somebody please port this to *BSD|Darwin


Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	(original)
+++ trunk/version.sh	Tue Jun  6 12:42:30 2006
@@ -3,7 +3,7 @@
 OS=`uname -s`
 case "$OS" in
   CYGWIN*|Linux|MINGW*)
-    last_cvs_update=`date -r .svn +%y%m%d-%H:%M 2>/dev/null`
+    last_cvs_update=r`grep committed-rev .svn/entries | head -n 1 | cut -d '"' -f 2 2>/dev/null`
     ;;
   Darwin|*BSD*)
     # BSD 'date -r' does not print modification time



More information about the MPlayer-cvslog mailing list