[Ffmpeg-cvslog] r5511 - trunk/version.sh

diego subversion
Fri Jun 23 17:07:35 CEST 2006


Author: diego
Date: Fri Jun 23 17:07:35 2006
New Revision: 5511

Modified:
   trunk/version.sh

Log:
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


Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	(original)
+++ trunk/version.sh	Fri Jun 23 17:07:35 2006
@@ -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`
 




More information about the ffmpeg-cvslog mailing list