Skip to content
Snippets Groups Projects
Commit 16064462 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

version.sh: write version to stdout if no output file specified

Originally committed as revision 24527 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ce3a841d
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,11 @@ test $version || version=$revision ...@@ -31,6 +31,11 @@ test $version || version=$revision
test -n "$3" && version=$version-$3 test -n "$3" && version=$version-$3
if [ -z "$2" ]; then
echo "$version"
exit
fi
NEW_REVISION="#define FFMPEG_VERSION \"$version\"" NEW_REVISION="#define FFMPEG_VERSION \"$version\""
OLD_REVISION=$(cat version.h 2> /dev/null) OLD_REVISION=$(cat version.h 2> /dev/null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment