mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user