aboutsummaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-06-28 20:46:58 +0000
committerMåns Rullgård <mans@mansr.com>2006-06-28 20:46:58 +0000
commit54003e1a707dea428c4dc56d2fdda8180063b122 (patch)
tree074b1fd9330430b537f0d14862d54153b5000ccf /version.sh
parent76a77ff291aac29f4c6df86dfd7db60e1097fee6 (diff)
downloadffmpeg-54003e1a707dea428c4dc56d2fdda8180063b122.tar.gz
get svn version when using separate build tree
Originally committed as revision 5539 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/version.sh b/version.sh
index 09c0382003..4721a711be 100755
--- a/version.sh
+++ b/version.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-svn_revision=`svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
+svn_revision=`cd "$1" && 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\""