Browse Source

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

git-svn-id: trunk@31827 -
pierre 10 years ago
parent
commit
938c797a0d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      packages/gdbint/gen-gdblib-inc.sh

+ 6 - 1
packages/gdbint/gen-gdblib-inc.sh

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