Fix dist on some of the buildbots
authorJan Schmidt <thaytan@noraisin.net>
Wed, 27 Oct 2010 12:12:20 +0000 (13:12 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Wed, 27 Oct 2010 12:12:20 +0000 (13:12 +0100)
When disting the tarball, and updating the -dist.[ch] files fails,
just ignore it. It happens when the -dist.[ch] files need updating,
but the srcdir is readonly, in which case we just copy the updated
files directly into the tarball, and don't update the srcdir.

orc.mak

diff --git a/orc.mak b/orc.mak
index ce4be89..a232b5d 100644 (file)
--- a/orc.mak
+++ b/orc.mak
@@ -61,13 +61,16 @@ clean-orc:
 
 dist-hook: dist-hook-orc
 .PHONY: dist-hook-orc
+
+# we try and copy updated orc -dist files below, but don't fail if it
+# doesn't work as the srcdir might not be writable
 dist-hook-orc: tmp-orc.c $(ORC_SOURCE).h
        $(top_srcdir)/common/gst-indent tmp-orc.c
        rm -f tmp-orc.c~
        cmp -s tmp-orc.c $(srcdir)/$(ORC_SOURCE)-dist.c || \
-         cp tmp-orc.c $(srcdir)/$(ORC_SOURCE)-dist.c
+         cp tmp-orc.c $(srcdir)/$(ORC_SOURCE)-dist.c || true
        cmp -s $(ORC_SOURCE).h $(srcdir)/$(ORC_SOURCE)-dist.h || \
-         cp $(ORC_SOURCE).h $(srcdir)/$(ORC_SOURCE)-dist.h
-       cp -p $(srcdir)/$(ORC_SOURCE)-dist.c $(distdir)/
-       cp -p $(srcdir)/$(ORC_SOURCE)-dist.h $(distdir)/
+         cp $(ORC_SOURCE).h $(srcdir)/$(ORC_SOURCE)-dist.h || true
+       cp -p tmp-orc.c $(distdir)/$(ORC_SOURCE)-dist.c
+       cp -p $(ORC_SOURCE).h $(distdir)/$(ORC_SOURCE)-dist.h