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

ivo subversion at mplayerhq.hu
Thu Sep 6 18:25:44 CEST 2007


Author: ivo
Date: Thu Sep  6 18:25:44 2007
New Revision: 24351

Log:
remove cut&paste from ffmpeg mistake. cd "$1" does not make any sense here,
as $1 is (g)cc's version number


Modified:
   trunk/version.sh

Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	(original)
+++ trunk/version.sh	Thu Sep  6 18:25:44 2007
@@ -3,8 +3,8 @@
 test "$1" && extra="-$1"
 
 svn_revision=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
-test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2`
-test $svn_revision || svn_revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null`
+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
 
 NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\""



More information about the MPlayer-cvslog mailing list