소스 검색

Allow to impose variable value as parameter (like AWK, as mawk from Makefile does not work)

git-svn-id: trunk@28950 -
pierre 11 년 전
부모
커밋
3530328cfd
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      packages/gdbint/gen-gdblib-inc.sh

+ 7 - 0
packages/gdbint/gen-gdblib-inc.sh

@@ -145,6 +145,13 @@ if [ "${1#libdir=}" != "$1" ]; then
   echo "libdir is set to \"$libdir\""
   opt_handled=1
 fi
+
+if [ "${1//=/ }" != "$1" ]; then
+  # Some variable set explicitly
+  echo "Evaluating $1"
+  export $1
+  opt_handled=1
+fi
 }
 
 # Try to handle all command line options