From 54cc289f9fd70ac2f3cddc398d5a5a7d34591539 Mon Sep 17 00:00:00 2001 From: zyyang Date: Mon, 21 Feb 2022 19:00:22 +0800 Subject: [PATCH] [TS-1212]: release script modify --- packaging/sed_pro.bat | 2 +- packaging/sed_pro.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packaging/sed_pro.bat b/packaging/sed_pro.bat index fe4447dc77..861004515c 100644 --- a/packaging/sed_pro.bat +++ b/packaging/sed_pro.bat @@ -5,7 +5,7 @@ set community_dir=%1 %sed% -i "s/C:\/TDengine/C:\/ProDB/g" %community_dir%\cmake\install.inc %sed% -i "s/taos\.cfg/prodb\.cfg/g" %community_dir%\cmake\install.inc %sed% -i "s/taos\.exe/prodbc\.exe/g" %community_dir%\cmake\install.inc -%sed% -i "/src\/connector/d" %community_dir%\cmake\install.inc +%sed% -i "/connector/d" %community_dir%\cmake\install.inc %sed% -i "/tests\/examples/d" %community_dir%\cmake\install.inc ::src\kit\shell\CMakeLists.txt %sed% -i "s/OUTPUT_NAME taos/OUTPUT_NAME prodbc/g" %community_dir%\src\kit\shell\CMakeLists.txt diff --git a/packaging/sed_pro.sh b/packaging/sed_pro.sh index 1126a6d426..ccb4721437 100755 --- a/packaging/sed_pro.sh +++ b/packaging/sed_pro.sh @@ -71,12 +71,13 @@ function replace_community_pro() { sed -i "s/etc\/taos/etc\/ProDB/g" ${top_dir}/src/os/src/linux/linuxEnv.c sed -i "s/lib\/taos/lib\/ProDB/g" ${top_dir}/src/os/src/linux/linuxEnv.c sed -i "s/log\/taos/log\/ProDB/g" ${top_dir}/src/os/src/linux/linuxEnv.c + # src/kit/shell/src/shellDarwin.c sed -i "s/TDengine shell/ProDB shell/g" ${top_dir}/src/kit/shell/src/shellDarwin.c sed -i "s/2020 by TAOS Data/2021 by HanaTech/g" ${top_dir}/src/kit/shell/src/shellDarwin.c # src/kit/shell/src/shellLinux.c sed -i "s/support@taosdata\.com/support@hanatech\.com\.cn/g" ${top_dir}/src/kit/shell/src/shellLinux.c - sed -i "s/TDengine shell/ProDB shell/g" ${top_dir}/src/kit/shell/src/shellLinux.c + sed -i "s/TDengine/ProDB/g" ${top_dir}/src/kit/shell/src/shellLinux.c sed -i "s/2020 by TAOS Data/2021 by HanaTech/g" ${top_dir}/src/kit/shell/src/shellLinux.c # src/os/src/windows/wEnv.c sed -i "s/C:\/TDengine/C:\/ProDB/g" ${top_dir}/src/os/src/windows/wEnv.c @@ -87,6 +88,10 @@ function replace_community_pro() { sed -i "s/\"taos> \"/\"ProDB> \"/g" ${top_dir}/src/kit/shell/src/shellEngine.c sed -i "s/\" -> \"/\" -> \"/g" ${top_dir}/src/kit/shell/src/shellEngine.c sed -i "s/prompt_size = 6/prompt_size = 7/g" ${top_dir}/src/kit/shell/src/shellEngine.c + # src/kit/shell/src/shellImport.c + sed -i "s/TDengine/ProDB/g" ${top_dir}/src/kit/shell/src/shellImport.c + # src/kit/shell/src/shellMain.c + sed -i "s/TDengine/ProDB/g" ${top_dir}/src/kit/shell/src/shellMain.c # src/rpc/src/rpcMain.c sed -i "s/taos connections/prodbc connections/g" ${top_dir}/src/rpc/src/rpcMain.c # src/plugins/monitor/src/monMain.c @@ -132,6 +137,7 @@ function replace_community_pro() { sed -i "s/configDir=\"\/etc\/taos\"/configDir=\"\/etc\/ProDB\"/g" ${top_dir}/packaging/tools/install.sh sed -i "s/installDir=\"\/usr\/local\/taos\"/installDir=\"\/usr\/local\/ProDB\"/g" ${top_dir}/packaging/tools/install.sh sed -i "s/adapterName=\"taosadapter\"/adapterName=\"proadapter\"/g" ${top_dir}/packaging/tools/install.sh + sed -i "s/\${csudo}mkdir -p \${install_main_dir}\/examples/#\${csudo}mkdir -p \${install_main_dir}\/examples/g" ${top_dir}/packaging/tools/install.sh # packaging/tools/makeclient.sh sed -i "s/productName=\"TDengine\"/productName=\"ProDB\"/g" ${top_dir}/packaging/tools/makeclient.sh -- GitLab