[Ffmpeg-devel] swscale.c compile error[PATCH]

Diego Biurrun diego
Wed Nov 29 03:28:19 CET 2006


On Mon, Nov 06, 2006 at 10:39:16AM +0100, Michel Bardiaux wrote:
> Diego Biurrun wrote:
> >On Thu, Nov 02, 2006 at 05:33:48PM +0100, Michel Bardiaux wrote:
> >>--- Makefile	(revision 6869)
> >>+++ Makefile	(working copy)
> >>@@ -88,7 +88,7 @@
> >> 
> >>-version.h:
> >>+version.h: .svn/entries
> >> 	$(SRC_PATH)/version.sh "$(SRC_PATH)"
> >
> >Won't work if .svn/entries is not present, as in a release or snapshot
> >tarball without .svn directories.
> 
> And to work with out-of-tree builds it should be
> 
> version.h: $(SRC_PATH)/.svn/entries
> 
> But that wont work if there are spaces in SRC_PATH.

Out-of-tree-builds in directories that contain spaces don't work anyway.

> OTOH as things stand, there is no rebuild after a svn version change, 
> and that's not good since it will lead people (me!) to flame about an 
> old svn when it's not actually old.
> 
> But I dont have a clue how to achieve that.

It's tricky.  I hacked up the following solution, it works kind of, but
it's ugly as heck.  I have no better ideas, though.  Suggestions
welcome.

Diego
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	(revision 7176)
+++ Makefile	(working copy)
@@ -85,7 +85,10 @@
 	cp -p $< $@
 	$(STRIP) $@
 
-version.h:
+$(SRC_PATH_BARE)/.svn/entries:
+	test -f "$@" || mkdir `dirname "$@"` ; touch "$@"
+
+version.h: $(SRC_PATH_BARE)/.svn/entries
 	$(SRC_PATH)/version.sh $(SRC_PATH)
 
 output_example$(EXESUF): output_example.o .libs



More information about the ffmpeg-devel mailing list