mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
version.sh: write version to stdout if no output file specified
Originally committed as revision 24527 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ce3a841da1
commit
1606446248
@ -31,6 +31,11 @@ test $version || version=$revision
|
||||
|
||||
test -n "$3" && version=$version-$3
|
||||
|
||||
if [ -z "$2" ]; then
|
||||
echo "$version"
|
||||
exit
|
||||
fi
|
||||
|
||||
NEW_REVISION="#define FFMPEG_VERSION \"$version\""
|
||||
OLD_REVISION=$(cat version.h 2> /dev/null)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user