ENH: improve wmake handling of directory when given a source file
This commit is contained in:
committed by
Andrew Heather
parent
6a7954fda1
commit
53392d5a05
@ -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
|
||||
|
||||
Reference in New Issue
Block a user