1
0
Fork 0

Merge improved version number generation from trunk.

Originally committed as revision 18288 to svn://svn.ffmpeg.org/ffmpeg/branches/0.5
This commit is contained in:
Diego Biurrun 2009-03-31 21:11:04 +00:00
parent c3c2325adc
commit 8e8813a0a1
2 changed files with 8 additions and 3 deletions

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.5

View File

@ -13,12 +13,16 @@ if ! test $revision; then
test $revision && revision=git-$revision
fi
# no version number found
# no revision number found
test $revision || revision=UNKNOWN
test -n "$3" && revision=$revision-$3
# releases extract the version number from the VERSION file
version=$(cat VERSION 2> /dev/null)
test $version || version=$revision
NEW_REVISION="#define FFMPEG_VERSION \"$revision\""
test -n "$3" && version=$version-$3
NEW_REVISION="#define FFMPEG_VERSION \"$version\""
OLD_REVISION=$(cat version.h 2> /dev/null)
# Update version.h only on revision changes to avoid spurious rebuilds