[MPlayer-cvslog] r23581 - trunk/version.sh
diego
subversion at mplayerhq.hu
Tue Jun 19 08:51:33 CEST 2007
Author: diego
Date: Tue Jun 19 08:51:33 2007
New Revision: 23581
Log:
Port changes for older Subversion releases from FFmpeg.
Modified:
trunk/version.sh
Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh (original)
+++ trunk/version.sh Tue Jun 19 08:51:33 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=`grep revision .svn/entries | \
- cut -d '"' -f2 2> /dev/null`
+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=UNKNOWN
NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\""
More information about the MPlayer-cvslog
mailing list