projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce3a841
)
version.sh: write version to stdout if no output file specified
author
Måns Rullgård
<mans@mansr.com>
Mon, 26 Jul 2010 23:43:59 +0000
(23:43 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Mon, 26 Jul 2010 23:43:59 +0000
(23:43 +0000)
Originally committed as revision 24527 to svn://svn.ffmpeg.org/ffmpeg/trunk
version.sh
patch
|
blob
|
history
diff --git
a/version.sh
b/version.sh
index 774e514c22fcba06e209e979e6ed2a2435d1aae8..f8510ea28ccfbc36959cf9b4234261a06b2a3313 100755
(executable)
--- 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)