From 7fedbb5487804015ac78291eea0ae8cc3946bb70 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sat, 8 Jun 2002 15:53:16 +0000 Subject: Try to avoid a looping makedepend that sometimes happens when timestamps are out of sync. p4raw-id: //depot/perl@17099 --- makedepend.SH | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'makedepend.SH') diff --git a/makedepend.SH b/makedepend.SH index daebe1ab75..589499502e 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 -- cgit v1.2.1