diff options
Diffstat (limited to 'version.sh')
-rwxr-xr-x | version.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,9 @@ #!/bin/sh # check for git short hash -revision=$(cd "$1" && git describe --always 2> /dev/null) +if ! test "$revision"; then + revision=$(cd "$1" && git describe --tags --match N 2> /dev/null) +fi # no revision number found test "$revision" || revision=$(cd "$1" && cat RELEASE 2> /dev/null) @@ -17,7 +19,7 @@ if [ -z "$2" ]; then exit fi -NEW_REVISION="#define LIBAV_VERSION \"$version\"" +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 |