From: brian Date: Fri, 27 Nov 2009 14:20:50 +0000 (+0000) Subject: b=19721 X-Git-Tag: GIT_EPOCH_B_HD_KDMU~54 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=96e8fbb553b78315df38dc18cd6173c0b2153549 b=19721 i=adilger Try to be somewhat intelligent about the need to autogen.sh or not by seeing if any of the patches touch an autoconf file. --- diff --git a/debian/rules b/debian/rules index aa03070..53fa04f 100755 --- a/debian/rules +++ b/debian/rules @@ -77,17 +77,19 @@ SRCDIR=. autogen: autogen-stamp autogen-stamp: patch-stamp - # There is really no reason to run this unless somebody adds a - # patch that patches the autoconf system, in which case they can - # include a patch for autogen.sh and uncomment this stuff. - #cp /usr/share/misc/config.sub config.sub - #cp /usr/share/misc/config.sub libsysio/config.sub - #cp /usr/share/misc/config.sub ldiskfs/config.sub - #cp /usr/share/misc/config.guess config.guess - #cp /usr/share/misc/config.guess libsysio/config.guess - #cp /usr/share/misc/config.guess ldiskfs/config.guess - #sh ./autogen.sh - #touch $@ + # see if any patches requires us to run autogen + if ! grep "^--- .*\/autoconf" debian/patches/* || \ + [ ! -f autogen.sh ]; then \ + exit 0; \ + fi + cp /usr/share/misc/config.sub config.sub + cp /usr/share/misc/config.sub libsysio/config.sub + cp /usr/share/misc/config.sub ldiskfs/config.sub + cp /usr/share/misc/config.guess config.guess + cp /usr/share/misc/config.guess libsysio/config.guess + cp /usr/share/misc/config.guess ldiskfs/config.guess + sh ./autogen.sh + touch $@ configure: configure-stamp configure-stamp: autogen-stamp debian/control.main debian/control.modules.in