18 lines
825 B
Plaintext
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`
|