From: Hilko Bengen Date: Mon, 5 Dec 2011 17:35:57 +0000 (+0100) Subject: Fix rpcgen post-processing for out-of-tree builds X-Git-Tag: 1.15.10~1 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=43942b08cfbcf91bef29ec532f3d097a8519c982;p=libguestfs.git Fix rpcgen post-processing for out-of-tree builds --- diff --git a/fish/Makefile.am b/fish/Makefile.am index 6ca8a82..16a29b0 100644 --- a/fish/Makefile.am +++ b/fish/Makefile.am @@ -139,7 +139,7 @@ if HAVE_RPCGEN rc_protocol.c: rc_protocol.x rm -f $@-t $@-t2 $(RPCGEN) -c -o $@-t $< - sed 's,\.\./\.\./fish/,,' < $@-t > $@-t2 + sed 's,\.\./\(\.\./\)*fish,.,' < $@-t > $@-t2 rm $@-t mv $@-t2 $@ diff --git a/src/Makefile.am b/src/Makefile.am index 82a4004..28a1b92 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -171,7 +171,7 @@ if HAVE_RPCGEN guestfs_protocol.c: guestfs_protocol.x rm -f $@-t $@-t2 $(RPCGEN) -c -o $@-t $(srcdir)/$< - sed 's,\.\./\.\./src/,,' < $@-t > $@-t2 + sed 's,\.\./\(\.\./\)*src,.,' < $@-t > $@-t2 rm $@-t mv $@-t2 $@