From 6cf8f07ce031fbc838af82d13b9db6e59102b333 Mon Sep 17 00:00:00 2001 From: zhangxubo <2578876417@qq.com> Date: Wed, 29 Sep 2021 14:42:25 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!12=20:?= =?UTF-8?q?=20=E9=80=82=E9=85=8Dodbc=E6=89=93=E5=8C=85'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 65e44fe..763373b 100755 --- a/build.sh +++ b/build.sh @@ -100,6 +100,14 @@ while [ $# -gt 0 ]; do serverlib_dir=$2 shift 2 ;; + -ud|--unixodbc_dir) + if [ "$2"X = X ]; then + echo "no given unixodbc directory values" + exit 1 + fi + UNIX_ODBC=$2 + shift 2 + ;; *) echo "Internal Error: option processing error: $1" 1>&2 @@ -131,7 +139,6 @@ SERVERLIBS_PATH="${serverlib_dir}" ################################## COMPLIE_TYPE="comm" echo "[makeodbc] $(date +%y-%m-%d' '%T): Work root dir : ${LOCAL_DIR}" -UNIX_ODBC="${LOCAL_DIR}/third_party/unixodbc/install_comm/unixODBC-2.3.9" ####################################################################### # Print log. ####################################################################### @@ -169,10 +176,6 @@ function clean_environment() ####################################################################### function install_odbc() { - echo "Begin make odbc..." >> "$LOG_FILE" 2>&1 - - cd ${LOCAL_DIR}/third_party/unixodbc/ - sh ./build_unixodbc.sh -m build >> "$LOG_FILE" 2>&1 cd ${LOCAL_DIR} export GAUSSHOME=$SERVERLIBS_PATH