[Ffmpeg-cvslog] r5539 - in trunk: Makefile version.sh

mru subversion
Wed Jun 28 22:46:58 CEST 2006


Author: mru
Date: Wed Jun 28 22:46:58 2006
New Revision: 5539

Modified:
   trunk/Makefile
   trunk/version.sh

Log:
get svn version when using separate build tree


Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	(original)
+++ trunk/Makefile	Wed Jun 28 22:46:58 2006
@@ -92,7 +92,7 @@
 
 .PHONY: version.h
 version.h:
-	$(SRC_PATH)/version.sh
+	$(SRC_PATH)/version.sh "$(SRC_PATH)"
 
 output_example$(EXESUF): output_example.o .libs
 	$(CC) $(FFLIBDIRS) $(LDFLAGS) -o $@ output_example.o $(FFLIBS) $(EXTRALIBS)

Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	(original)
+++ trunk/version.sh	Wed Jun 28 22:46:58 2006
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-svn_revision=`svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
+svn_revision=`cd "$1" && 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\""




More information about the ffmpeg-cvslog mailing list