From: Jarkko Hietaniemi Date: Sat, 8 Jun 2002 15:53:16 +0000 (+0000) Subject: Try to avoid a looping makedepend that sometimes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7fedbb5487804015ac78291eea0ae8cc3946bb70;p=p5sagit%2Fp5-mst-13.2.git Try to avoid a looping makedepend that sometimes happens when timestamps are out of sync. p4raw-id: //depot/perl@17099 --- diff --git a/makedepend.SH b/makedepend.SH index daebe1a..5894995 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -29,6 +29,13 @@ trnl='$trnl' !GROK!THIS! $spitshell >>makedepend <<'!NO!SUBS!' +if test -d .depending; then + echo "$0: Already running, exiting." + exit 0 +fi + +mkdir .depending + # This script should be called with # sh ./makedepend MAKE=$(MAKE) case "$1" in @@ -224,6 +231,7 @@ $cp $mf.new $mf $rm $mf.new $echo "# WARNING: Put nothing here or make depend will gobble it up!" >> $mf $rm -rf .deptmp UU .shlist .clist .hlist .hsed +rmdir .depending !NO!SUBS! $eunicefix makedepend