ENH: improve wmake handling of directory when given a source file

This commit is contained in:
Mark Olesen
2019-07-28 21:09:11 +02:00
committed by Andrew Heather
parent 6a7954fda1
commit 53392d5a05

View File

@ -268,6 +268,10 @@ then
then then
dir="${1%/*}" dir="${1%/*}"
: "${dir:=.}" : "${dir:=.}"
if [ "$dir" = "$1" ]
then
dir="."
fi
else else
echo "$Script error: not a file or directory" 1>&2 echo "$Script error: not a file or directory" 1>&2
exit 1 exit 1
@ -299,6 +303,10 @@ else
then then
dir="${1%/*}" dir="${1%/*}"
: "${dir:=.}" : "${dir:=.}"
if [ "$dir" = "$1" ]
then
dir="."
fi
else else
targetType="$1" targetType="$1"
fi fi