Revision de2c2b5a

View differences:

version.sh
13 13
    test $revision && revision=git-$revision
14 14
fi
15 15

  
16
# no version number found
16
# no revision number found
17 17
test $revision || revision=UNKNOWN
18 18

  
19
test -n "$3" && revision=$revision-$3
19
# releases extract the version number from the VERSION file
20
version=$(cat VERSION 2> /dev/null)
21
test $version || version=$revision
20 22

  
21
NEW_REVISION="#define FFMPEG_VERSION \"$revision\""
23
test -n "$3" && version=$version-$3
24

  
25
NEW_REVISION="#define FFMPEG_VERSION \"$version\""
22 26
OLD_REVISION=$(cat version.h 2> /dev/null)
23 27

  
24 28
# Update version.h only on revision changes to avoid spurious rebuilds

Also available in: Unified diff