diff --git a/version.sh b/version.sh index cfed406b26..09c0382003 100755 --- a/version.sh +++ b/version.sh @@ -1,6 +1,8 @@ #!/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\"" OLD_REVISION=`cat version.h 2> /dev/null`