openbsd-ports/graphics/ffmpeg/patches/patch-version_sh
jakemsr e066281b74 update to SVN snapshot from 20070501
several new codecs added, including an WMA encoder, Theora
encoding via libtheora, and H.264 encoding via x264

with feedback from brad@, jolan@, naddy@ and Nikns Sainkin
<nikns at secure dot lv>

OK jolan@
2007-05-25 15:54:14 +00:00

18 lines
825 B
Plaintext

$OpenBSD: patch-version_sh,v 1.1 2007/05/25 15:54:14 jakemsr Exp $
--- version.sh.orig Wed Apr 4 21:25:05 2007
+++ version.sh Thu Apr 19 05:39:26 2007
@@ -1,9 +1,9 @@
#!/bin/sh
-svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
-test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries | \
- cut -d '"' -f2 2> /dev/null`
-test $svn_revision || svn_revision=UNKNOWN
+#svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
+svn_revision=`cd "$1" && grep Revision svn-info | \
+ cut -d' ' -f2 2> /dev/null`
+test -n "$svn_revision" || svn_revision=UNKNOWN
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
OLD_REVISION=`cat version.h 2> /dev/null`