X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=makedepend.SH;h=4ab1ec3809e126ed542b00c8ac850c538a07d450;hb=055bb491aa1c61403cb7de2ea930a89a362e1807;hp=7f8a108e3b53d0fab4aee6d8a6388eb6b2c305b3;hpb=25b8a0ba1907479f8f8212953a6f6eec37c6e057;p=p5sagit%2Fp5-mst-13.2.git diff --git a/makedepend.SH b/makedepend.SH index 7f8a108..4ab1ec3 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -1,5 +1,5 @@ #! /bin/sh -case $CONFIGDOTSH in +case $PERL_CONFIG_SH in '') if test -f config.sh; then TOP=.; elif test -f ../config.sh; then TOP=..; @@ -18,6 +18,10 @@ case "$0" in */*) cd `expr X$0 : 'X\(.*\)/'` ;; esac +case "$osname" in +amigaos) cat=/bin/cat ;; # must be absolute +esac + echo "Extracting makedepend (with variable substitutions)" rm -f makedepend $spitshell >makedepend <> .deptmp else - $cppstdin $finc -I. $cppflags $cppminus &1 | $sed \ -e '1d' \ -e '/^#.*/d' \ -e '/^#.*"-"/d' \ + -e '/: file path prefix .* never used$/d' \ -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \ -e 's/^[ ]*#[ ]*line/#/' \ -e '/^# *[0-9][0-9]* *[".\/]/!d' \