aboutsummaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-03-16 21:53:58 +0100
committerJanne Grunau <janne-libav@jannau.net>2011-03-18 21:57:38 +0100
commitfaa6f1c306b817a7349e3fe16590371d6d499998 (patch)
tree4a7f97223ee136465e54ba81acd26850489eaba1 /version.sh
parentfda299f0d01c1691625180786a01b01065df7156 (diff)
downloadffmpeg-faa6f1c306b817a7349e3fe16590371d6d499998.tar.gz
get rid of the last svn mentions
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/version.sh b/version.sh
index 66a1c6f0ac..6ec2b2567e 100755
--- a/version.sh
+++ b/version.sh
@@ -1,13 +1,8 @@
#!/bin/sh
-revision=$(cd "$1" && cat snapshot_version 2> /dev/null)
-test "$revision" && revision=SVN-r$revision
-
# check for git short hash
-if ! test "$revision"; then
- revision=$(cd "$1" && git describe --always 2> /dev/null)
- test "$revision" && revision=git-$revision
-fi
+revision=$(cd "$1" && git describe --always 2> /dev/null)
+test "$revision" && revision=git-$revision
# no revision number found
test "$revision" || revision=UNKNOWN