Skip to content

Commit

Permalink
version.sh: write version to stdout if no output file specified
Browse files Browse the repository at this point in the history
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@24527 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
  • Loading branch information
mru committed Jul 26, 2010
1 parent 4dbb8fc commit 437c7dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 437c7dd

Please sign in to comment.