Skip to content
Snippets Groups Projects
Commit 53392d5a authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

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

parent 6a7954fd
No related merge requests found
...@@ -268,6 +268,10 @@ then ...@@ -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 ...@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment