diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-08 15:53:16 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-08 15:53:16 +0000 |
commit | 7fedbb5487804015ac78291eea0ae8cc3946bb70 (patch) | |
tree | 533d3fba6fb81fdc58d1dcd80a5c94c4410b8b84 /makedepend.SH | |
parent | 1f822b28dbc58a701d0cbdd33572f35b2c56c576 (diff) | |
download | perl-7fedbb5487804015ac78291eea0ae8cc3946bb70.tar.gz |
Try to avoid a looping makedepend that sometimes
happens when timestamps are out of sync.
p4raw-id: //depot/perl@17099
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-x | makedepend.SH | 8 |
1 files changed, 8 insertions, 0 deletions
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 |