X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=makedepend.SH;h=994123ecd1c944118c2a61f3f6222596c1d80d7b;hb=1b1e14d34a33bfe0df591910cafcab54421ca8a8;hp=74c3ecb817ecb1c59b293e5d7d8e9789617aaab2;hpb=2ebcf328f2f6a477ae1d821fa26a32def4a81660;p=p5sagit%2Fp5-mst-13.2.git diff --git a/makedepend.SH b/makedepend.SH index 74c3ecb..994123e 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -1,5 +1,5 @@ #! /bin/sh -case $CONFIG in +case $CONFIGDOTSH in '') if test -f config.sh; then TOP=.; elif test -f ../config.sh; then TOP=..; @@ -37,7 +37,7 @@ esac export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$) -case $CONFIG in +case $CONFIGDOTSH in '') if test -f config.sh; then TOP=.; elif test -f ../config.sh; then TOP=..; @@ -67,6 +67,7 @@ if test -f Makefile; then # to be out of date. I don't know if OS/2 has touch, so do this: case "$osname" in os2) ;; + netbsd) ;; *) $touch $firstmakefile ;; esac fi @@ -101,7 +102,15 @@ for file in `$cat .clist`; do if [ "$osname" = uwin ]; then uwinfix="-e s,\\\\\\\\,/,g -e s,\\([a-zA-Z]\\):/,/\\1/,g" else - uwinfix= + if [ "$osname" = os2 ]; then + uwinfix="-e s,\\\\\\\\,/,g" + else + if [ "$archname" = cygwin ]; then + uwinfix="-e s,\\\\\\\\,/,g" + else + uwinfix= + fi + fi fi case "$file" in *.c) filebase=`basename $file .c` ;; @@ -121,6 +130,9 @@ for file in `$cat .clist`; do -e 's|\\$||' \ -e p \ -e '}' ) >UU/$file.c + if [ "$osname" = os390 -a "$file" = perly.c ]; then + $echo '#endif' >>UU/$file.c + fi $cppstdin $finc -I. $cppflags $cppminus /d' \