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

diego subversion at mplayerhq.hu
Tue Jun 20 12:08:19 CEST 2006


Author: diego
Date: Tue Jun 20 12:08:19 2006
New Revision: 18762

Modified:
   trunk/version.sh

Log:
simplify


Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	(original)
+++ trunk/version.sh	Tue Jun 20 12:08:19 2006
@@ -1,10 +1,7 @@
 #!/bin/sh
 
-revision=r`grep committed-rev .svn/entries | sed 1q | cut -d '"' -f 2 2>/dev/null`
+revision=r`grep revision .svn/entries | cut -d '"' -f 2 2> /dev/null`
 
-extra=""
-if test "$1" ; then
-  extra="-$1"
-fi
+test "$1" && extra="-$1"
 
 echo "#define VERSION \"dev-SVN-${revision}${extra}\"" > version.h



More information about the MPlayer-cvslog mailing list