From 8202d905cd0df4b8fbb29535a1d422f28d204059 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Thu, 7 Jan 2010 19:23:50 +0000 Subject: [PATCH] Check for VERSION in source dir. Originally committed as revision 21067 to svn://svn.ffmpeg.org/ffmpeg/trunk --- version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.sh b/version.sh index 39bef80af1..5b5f451534 100755 --- a/version.sh +++ b/version.sh @@ -26,7 +26,7 @@ fi test $revision || revision=UNKNOWN # releases extract the version number from the VERSION file -version=$(cat VERSION 2> /dev/null) +version=$(cd "$1" && cat VERSION 2> /dev/null) test $version || version=$revision test -n "$3" && version=$version-$3