summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-08 15:53:16 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-08 15:53:16 +0000
commit7fedbb5487804015ac78291eea0ae8cc3946bb70 (patch)
tree533d3fba6fb81fdc58d1dcd80a5c94c4410b8b84 /makedepend.SH
parent1f822b28dbc58a701d0cbdd33572f35b2c56c576 (diff)
downloadperl-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-xmakedepend.SH8
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