diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-26 23:43:59 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-26 23:43:59 +0000 |
commit | 1606446248e0f3d5740d3ef729a4de8ce6d0ca54 (patch) | |
tree | f60cc6811a3052c6ebb6b37c2886f4f52e3af8d8 /version.sh | |
parent | ce3a841da1a9d7ad6094a7b8e5f4c79a9a353211 (diff) | |
download | ffmpeg-1606446248e0f3d5740d3ef729a4de8ce6d0ca54.tar.gz |
version.sh: write version to stdout if no output file specified
Originally committed as revision 24527 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'version.sh')
-rwxr-xr-x | version.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/version.sh b/version.sh index 774e514c22..f8510ea28c 100755 --- a/version.sh +++ b/version.sh @@ -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) |