aboutsummaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-26 23:43:59 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-26 23:43:59 +0000
commit1606446248e0f3d5740d3ef729a4de8ce6d0ca54 (patch)
treef60cc6811a3052c6ebb6b37c2886f4f52e3af8d8 /version.sh
parentce3a841da1a9d7ad6094a7b8e5f4c79a9a353211 (diff)
downloadffmpeg-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-xversion.sh5
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)