X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=makedepend.SH;h=035581023cf5c7211c1cec0e9071ba41531c46a0;hb=bbd5c0f5ad81733b079008f34cd05cd9aef7d917;hp=9a6f4c19a61915c2fc4b25c82c012eb99cfc8c3d;hpb=92d29cee5ff815b05b81b877528e4c77e73881c9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/makedepend.SH b/makedepend.SH index 9a6f4c1..0355810 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 '/^#.*/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' \