diff options
author | Joe Buehler <jbuehler@hekimian.com> | 1998-08-29 13:13:28 -0400 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-09-23 06:41:34 +0000 |
commit | 2ebcf328f2f6a477ae1d821fa26a32def4a81660 (patch) | |
tree | 0fce993b73d3fff7c3c57976373c22b62fc16d24 /makedepend.SH | |
parent | 6e68dac881cea847d8831bc4b3fdb32ae55b843d (diff) | |
download | perl-2ebcf328f2f6a477ae1d821fa26a32def4a81660.tar.gz |
patches for perl 5.005_51 under U/WIN
Message-ID: <yd37lzro5jb.fsf@pandora.hekimian.com>
p4raw-id: //depot/perl@1823
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-x | makedepend.SH | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/makedepend.SH b/makedepend.SH index efc12b00a3..74c3ecb817 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -98,6 +98,11 @@ $MAKE clist || ($echo "Searching for .c files..."; \ $echo *.c | $tr ' ' $trnl | $egrep -v '\*' >.clist) for file in `$cat .clist`; do # for file in `cat /dev/null`; do + if [ "$osname" = uwin ]; then + uwinfix="-e s,\\\\\\\\,/,g -e s,\\([a-zA-Z]\\):/,/\\1/,g" + else + uwinfix= + fi case "$file" in *.c) filebase=`basename $file .c` ;; *.y) filebase=`basename $file .y` ;; @@ -126,7 +131,7 @@ for file in `$cat .clist`; do -e 's/^.*"\(.*\)".*$/'$filebase'\$(OBJ_EXT): \1/' \ -e 's/^# *[0-9][0-9]* \(.*\)$/'$filebase'\$(OBJ_EXT): \1/' \ -e 's|: \./|: |' \ - -e 's|\.c\.c|.c|' | \ + -e 's|\.c\.c|.c|' $uwinfix | \ $uniq | $sort | $uniq >> .deptmp done |