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