Fix error in last commit opthandled -> opt_handled; Add FORCEAWK option to overrule AWK found in Makefile

git-svn-id: trunk@31827 -
This commit is contained in:
pierre 2015-09-25 13:44:23 +00:00
parent 33986a03d3
commit 938c797a0d

View File

@ -153,7 +153,7 @@ if [ "${1#removedir=}" != "$1" ]; then
opt_handled=1
fi
if [ $opthandled -eq 0 ] ; then
if [ $opt_handled -eq 0 ] ; then
if [ "${1//=/ }" != "$1" ]; then
# Some variable set explicitly
echo "Evaluating \"$1\""
@ -179,6 +179,11 @@ if [ "$1" != "" ]; then
exit
fi
if [ "x$FORCEAWK" != "x" ] ; then
echo "Forcing use of AWK=${FORCEAWK}"
AWK=${FORCEAWK}
fi
if [ "$OSTYPE" == "msys" ]; then
echo "MSYS system detected"
in_msys=1