[FFmpeg-cvslog] r19655 - trunk/version.sh
mru
subversion
Sun Aug 16 17:51:47 CEST 2009
Author: mru
Date: Sun Aug 16 17:51:47 2009
New Revision: 19655
Log:
version.sh: use standard sed syntax
Modified:
trunk/version.sh
Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh Sat Aug 15 14:35:15 2009 (r19654)
+++ trunk/version.sh Sun Aug 16 17:51:47 2009 (r19655)
@@ -4,7 +4,10 @@
revision=$(cat snapshot_version 2> /dev/null)
test $revision || revision=$(cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
test $revision || revision=$(cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2)
-test $revision || revision=$(cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null)
+test $revision || revision=$(cd "$1" && sed -n -e '/^dir$/{n
+p
+q
+}' .svn/entries 2>/dev/null)
test $revision && revision=SVN-r$revision
# check for git short hash
More information about the ffmpeg-cvslog
mailing list