From: Stephane Glondu Date: Tue, 8 Jul 2008 11:56:53 +0000 (+0200) Subject: Copy config.{sub,guess} in pre-config phase instead of clean X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~463 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c8bdd9e0fc12634749a2d0c7c5f678c49f7747dc;p=ocaml.git Copy config.{sub,guess} in pre-config phase instead of clean --- diff --git a/debian/rules b/debian/rules index 98c334b6..07e0a764 100755 --- a/debian/rules +++ b/debian/rules @@ -57,7 +57,14 @@ debian/control: sed -e 's/#OcamlNativeArchs#/$(NATIVE_ARCHS)/g' debian/control.in > $@ pre-config: debian/$(SRCTARBALL) + for ext in sub guess; do \ + if [ -f /usr/share/misc/config.$$ext ] && ! [ -f debian/config.orig.$$ext ] ; then \ + mv config/gnu/config.$$ext debian/config.orig.$$ext; \ + cp -f /usr/share/misc/config.$$ext config/gnu/config.$$ext; \ + fi; \ + done touch $@ + debian/$(SRCTARBALL): ln -fs . $(DISTDIR) # beware of the symlink recursion! tar --anchored -chjf $@ \ @@ -134,12 +141,11 @@ clean: abi-sed unpatch $(MAKE) -C debian/ocaml-md5sums clean $(MAKE) -C debian/dh-ocaml clean $(MAKE) -C debian/policy clean -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - -cp -f /usr/share/misc/config.sub config/gnu/config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - -cp -f /usr/share/misc/config.guess config/gnu/config.guess -endif + for ext in sub guess; do \ + if [ -f debian/config.orig.$$ext ] ; then \ + mv -f debian/config.orig.$$ext config/gnu/config.$$ext; \ + fi; \ + done # File not cleaned by upstream -$(RM) _boot_log1 -$(RM) _boot_log2