changeset 24331:f5edea48bb66

remove cut&paste from ffmpeg mistake. cd "$1" does not make any sense here, as $1 is (g)cc's version number
author ivo
date Thu, 06 Sep 2007 16:25:44 +0000
parents 7fc72cf7f790
children 012188d367d3
files version.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/version.sh	Thu Sep 06 09:36:01 2007 +0000
+++ b/version.sh	Thu Sep 06 16:25:44 2007 +0000
@@ -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}\""