[MPlayer-dev-eng] version.sh patch

Andreas Hess jaska at gmx.net
Mon Jul 15 13:41:47 CEST 2002


Hi,

this is a small patch for the mplayer cvs version-string, so that
the true last cvs update and not just the last cvs update in the
top level directory is shown in the version-string.


Andreas
-------------- next part --------------
Index: version.sh
===================================================================
RCS file: /cvsroot/mplayer/main/version.sh,v
retrieving revision 1.8
diff -u -r1.8 version.sh
--- version.sh  3 May 2002 19:17:19 -0000       1.8
+++ version.sh  15 Jul 2002 11:41:15 -0000
@@ -7,6 +7,13 @@
 elif test `uname -s` = 'Darwin' ; then
         # darwin's date has different meaning for -r
         last_cvs_update=`date +%y%m%d-%H:%M`
+else
+       for i in `find . -name Entries 2>/dev/null` ; do
+               x=`date -r $i +%y%m%d-%H:%M`
+               if test $x \> $last_cvs_update ; then
+                       last_cvs_update=$x
+               fi
+       done
 fi

 echo "#define VERSION \"CVS-${last_cvs_update}-$1 \"" >version.h


More information about the MPlayer-dev-eng mailing list