mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
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:
parent
c3c2325adc
commit
8e8813a0a1
10
version.sh
10
version.sh
@ -13,12 +13,16 @@ if ! test $revision; then
|
|||||||
test $revision && revision=git-$revision
|
test $revision && revision=git-$revision
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# no version number found
|
# no revision number found
|
||||||
test $revision || revision=UNKNOWN
|
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)
|
OLD_REVISION=$(cat version.h 2> /dev/null)
|
||||||
|
|
||||||
# Update version.h only on revision changes to avoid spurious rebuilds
|
# Update version.h only on revision changes to avoid spurious rebuilds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user