summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-23 16:41:31 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-23 17:03:45 +0000
commit486cd780047ff22471c5cbe417911a042ae23962 (patch)
tree5389041539c3d18c988fdc6b88105f51f328620a /makedepend.SH
parentbf799c6455f928b1043103098647499d1b2e96ff (diff)
downloadperl-486cd780047ff22471c5cbe417911a042ae23962.tar.gz
Amend patchlevel.h so that git_version.h is only #include""ed for perl.
miniperl builds with canned data equivalent to stock_git_version.h. git_version.h becomes an explicit dependency for perl.o, make_patchnum.pl is explicitly run to create it, and no sub-makes are spawned with their inherent race conditions and consequent strange build failures.
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH2
1 files changed, 2 insertions, 0 deletions
diff --git a/makedepend.SH b/makedepend.SH
index e4f82529ae..3630087e60 100755
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -150,6 +150,7 @@ for file in `$cat .clist`; do
$sed \
-e '/^#.*<stdin>/d' \
-e '/^#.*"-"/d' \
+ -e '/^#.*git_version\.h/d' \
-e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
-e 's/^[ ]*#[ ]*line/#/' \
-e '/^# *[0-9][0-9]* *[".\/]/!d' \
@@ -170,6 +171,7 @@ for file in `$cat .clist`; do
-e '/^#.*"-"/d' \
-e '/^#.*"\/.*\/"/d' \
-e '/: file path prefix .* never used$/d' \
+ -e '/^#.*git_version\.h/d' \
-e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
-e 's/^[ ]*#[ ]*line/#/' \
-e '/^# *[0-9][0-9]* *[".\/]/!d' \