From a66d63a94e0ad40646731886ce47e135a7154634 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 23 Jun 2006 15:07:35 +0000 Subject: [PATCH] =?UTF-8?q?Produce=20correct=20version=20string=20even=20w?= =?UTF-8?q?hen=20not=20run=20in=20a=20Subversion=20working=20copy.=20based?= =?UTF-8?q?=20on=20a=20patch=20by=20Ismail=20D=C3=B6nmez=20ismail##@##pard?= =?UTF-8?q?us##.##org##.##tr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 5511 to svn://svn.ffmpeg.org/ffmpeg/trunk --- version.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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`