X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=makedepend.SH;h=7129e08a8456b3f207bce51c8843d7432d6432d8;hb=dbe483029183d54ab170feb5939c3b2b8b193b3c;hp=8176204e35186e74520d865d5d96f8caa9f25cd9;hpb=099685bc64c7dbceb0d631a2523edb7f61aaf02f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/makedepend.SH b/makedepend.SH index 8176204..7129e08 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=..; @@ -102,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` ;; @@ -122,8 +130,12 @@ 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' \ -e '/^#.*"-"/d' \ -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \