summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-01-02 16:50:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-02 16:50:22 +0000
commit865cd44c20d486963b94c051b17cb3655dde55e4 (patch)
treeb6d291ce012ffbdf3b24dd46a82280ee4693f9e2 /makedepend.SH
parentc6b79628012c18b06d27164432d66e56c627b161 (diff)
downloadperl-865cd44c20d486963b94c051b17cb3655dde55e4.tar.gz
makedepend VOS fix from Paul Green.
p4raw-id: //depot/perl@14018
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH25
1 files changed, 8 insertions, 17 deletions
diff --git a/makedepend.SH b/makedepend.SH
index 035581023c..19c90d6303 100755
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -103,23 +103,14 @@ $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
- if [ "$osname" = os2 ]; then
- uwinfix="-e s,\\\\\\\\,/,g"
- else
- if [ "$archname" = cygwin ]; then
- uwinfix="-e s,\\\\\\\\,/,g"
- else
- if [ "$osname" = posix-bc ]; then
- uwinfix="-e s/\\*POSIX(\\(.*\\))/\\1/"
- else
- uwinfix=
- fi
- fi
- fi
- fi
+ case "$osname" in
+ uwin) uwinfix="-e s,\\\\\\\\,/,g -e s,\\([a-zA-Z]\\):/,/\\1/,g" ;;
+ os2) uwinfix="-e s,\\\\\\\\,/,g" ;;
+ cygwin) uwinfix="-e s,\\\\\\\\,/,g" ;;
+ posix-bc) uwinfix="-e s/\\*POSIX(\\(.*\\))/\\1/" ;;
+ vos) uwinfix="-e s/\#/\\\#/" ;;
+ *) uwinfix="" ;;
+ esac
case "$file" in
*.c) filebase=`basename $file .c` ;;
*.y) filebase=`basename $file .y` ;;