Skip to content
Snippets Groups Projects
Commit a66d63a9 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

Produce correct version string even when not run in a Subversion working copy.

based on a patch by Ismail Dönmez ismail##@##pardus##.##org##.##tr

Originally committed as revision 5511 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent fd071c26
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
svn_revision=`svn info | grep Revision | cut -d' ' -f2 || echo UNKNOWN` svn_revision=`svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
test $svn_revision || svn_revision=UNKNOWN
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\"" NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
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