aboutsummaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-06-23 15:07:35 +0000
committerDiego Biurrun <diego@biurrun.de>2006-06-23 15:07:35 +0000
commita66d63a94e0ad40646731886ce47e135a7154634 (patch)
tree45bfdaf920e9427fca30e4f62b12f4980589adcf /version.sh
parentfd071c2659186813cecd217dd58941f48402b2a0 (diff)
downloadffmpeg-a66d63a94e0ad40646731886ce47e135a7154634.tar.gz
Produce correct version string even when not run in a Subversion working copy.
based on a patch by Ismail Dönmez ismail##@##pardus##.##org##.##tr Originally committed as revision 5511 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/version.sh b/version.sh
index cfed406b26..09c0382003 100755
--- a/version.sh
+++ b/version.sh
@@ -1,6 +1,8 @@
#!/bin/sh
-svn_revision=`svn info | grep Revision | cut -d' ' -f2 || echo UNKNOWN`
+svn_revision=`svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
+test $svn_revision || svn_revision=UNKNOWN
+
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
OLD_REVISION=`cat version.h 2> /dev/null`