Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
向上的车轮
TDengine
提交
9f0b8f35
TDengine
项目概览
向上的车轮
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9f0b8f35
编写于
10月 10, 2021
作者:
Z
zyyang-taosdata
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TS-409]<release>: OEM packaging scripts
上级
9f588604
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
83 addition
and
68 deletion
+83
-68
packaging/release.sh
packaging/release.sh
+5
-0
packaging/tools/install.sh
packaging/tools/install.sh
+1
-0
packaging/tools/install_pro.sh
packaging/tools/install_pro.sh
+10
-10
packaging/tools/makepkg_pro.sh
packaging/tools/makepkg_pro.sh
+61
-57
src/kit/shell/inc/shell.h
src/kit/shell/inc/shell.h
+6
-1
未找到文件。
packaging/release.sh
浏览文件 @
9f0b8f35
...
...
@@ -192,6 +192,11 @@ else
allocator_macro
=
""
fi
if
[[
"
$dbName
"
==
"pro"
]]
;
then
sed
-i
"s/taos config/prodb config/g"
${
top_dir
}
/src/util/src/tconfig.c
fi
# check support cpu type
if
[[
"
$cpuType
"
==
"x64"
]]
||
[[
"
$cpuType
"
==
"aarch64"
]]
||
[[
"
$cpuType
"
==
"aarch32"
]]
||
[[
"
$cpuType
"
==
"mips64"
]]
;
then
if
[
"
$verMode
"
!=
"cluster"
]
;
then
...
...
packaging/tools/install.sh
浏览文件 @
9f0b8f35
...
...
@@ -1002,6 +1002,7 @@ function install_TDengine() {
echo
echo
-e
"
\0
33[44;32;1mTDengine client is installed successfully!
${
NC
}
"
fi
touch
~/.taos_history
rm
-rf
$(
tar
-tf
taos.tar.gz
)
}
...
...
packaging/tools/install_pro.sh
浏览文件 @
9f0b8f35
...
...
@@ -154,9 +154,9 @@ function install_main_path() {
${
csudo
}
mkdir
-p
${
install_main_dir
}
${
csudo
}
mkdir
-p
${
install_main_dir
}
/cfg
${
csudo
}
mkdir
-p
${
install_main_dir
}
/bin
${
csudo
}
mkdir
-p
${
install_main_dir
}
/connector
#
${csudo} mkdir -p ${install_main_dir}/connector
${
csudo
}
mkdir
-p
${
install_main_dir
}
/driver
${
csudo
}
mkdir
-p
${
install_main_dir
}
/examples
#
${csudo} mkdir -p ${install_main_dir}/examples
${
csudo
}
mkdir
-p
${
install_main_dir
}
/include
${
csudo
}
mkdir
-p
${
install_main_dir
}
/init.d
if
[
"
$verMode
"
==
"cluster"
]
;
then
...
...
@@ -779,10 +779,10 @@ function update_prodb() {
install_log
install_header
install_lib
if
[
"
$pagMode
"
!=
"lite"
]
;
then
install_connector
fi
install_examples
#
if [ "$pagMode" != "lite" ]; then
#
install_connector
#
fi
#
install_examples
if
[
-z
$1
]
;
then
install_bin
install_service
...
...
@@ -853,10 +853,10 @@ function install_prodb() {
install_header
install_lib
install_jemalloc
if
[
"
$pagMode
"
!=
"lite"
]
;
then
install_connector
fi
install_examples
#
if [ "$pagMode" != "lite" ]; then
#
install_connector
#
fi
#
install_examples
if
[
-z
$1
]
;
then
# install service and client
# For installing new
...
...
packaging/tools/makepkg_pro.sh
浏览文件 @
9f0b8f35
...
...
@@ -24,7 +24,7 @@ build_dir="${compile_dir}/build"
code_dir
=
"
${
top_dir
}
/src"
release_dir
=
"
${
top_dir
}
/release"
#package_name='linux'
#
package_name='linux'
if
[
"
$verMode
"
==
"cluster"
]
;
then
install_dir
=
"
${
release_dir
}
/ProDB-enterprise-server-
${
version
}
"
else
...
...
@@ -45,19 +45,13 @@ nginx_dir="${code_dir}/../../enterprise/src/plugins/web"
mkdir
-p
${
install_dir
}
mkdir
-p
${
install_dir
}
/inc
&&
cp
${
header_files
}
${
install_dir
}
/inc
mkdir
-p
${
install_dir
}
/cfg
&&
cp
${
cfg_dir
}
/taos.cfg
${
install_dir
}
/cfg/taos.cfg
#mkdir -p ${install_dir}/bin && cp ${bin_files} ${install_dir}/bin && chmod a+x ${install_dir}/bin/* || :
mkdir
-p
${
install_dir
}
/bin
# bin
if
[
"
$pagMode
"
==
"lite"
]
;
then
strip
${
build_dir
}
/bin/taosd
strip
${
build_dir
}
/bin/taos
cp
${
build_dir
}
/bin/taos
${
install_dir
}
/bin/prodbc
cp
${
build_dir
}
/bin/taosd
${
install_dir
}
/bin/prodbs
cp
${
script_dir
}
/remove_pro.sh
${
install_dir
}
/bin
else
cp
${
build_dir
}
/bin/taos
${
install_dir
}
/bin/prodbc
cp
${
build_dir
}
/bin/taosd
${
install_dir
}
/bin/prodbs
cp
${
script_dir
}
/remove_pro.sh
${
install_dir
}
/bin
cp
${
build_dir
}
/bin/taosdemo
${
install_dir
}
/bin/prodemo
cp
${
build_dir
}
/bin/taosdump
${
install_dir
}
/bin/prodump
cp
${
build_dir
}
/bin/tarbitrator
${
install_dir
}
/bin
...
...
@@ -66,8 +60,12 @@ else
cp
${
script_dir
}
/startPre.sh
${
install_dir
}
/bin
cp
${
script_dir
}
/taosd-dump-cfg.gdb
${
install_dir
}
/bin
fi
cp
${
build_dir
}
/bin/taos
${
install_dir
}
/bin/prodbc
cp
${
build_dir
}
/bin/taosd
${
install_dir
}
/bin/prodbs
cp
${
script_dir
}
/remove_pro.sh
${
install_dir
}
/bin
chmod
a+x
${
install_dir
}
/bin/
*
||
:
# cluster
if
[
"
$verMode
"
==
"cluster"
]
;
then
sed
's/verMode=edge/verMode=cluster/g'
${
install_dir
}
/bin/remove_pro.sh
>>
remove_prodb_temp.sh
mv
remove_prodb_temp.sh
${
install_dir
}
/bin/remove_pro.sh
...
...
@@ -84,14 +82,9 @@ if [ "$verMode" == "cluster" ]; then
sed
-i
-e
's/<th style="font-weight: normal">taosd<\/th>/<th style="font-weight: normal">prodbs<\/th>/g'
${
install_dir
}
/nginxd/admin/monitor.html
sed
-i
-e
"s/data:
\[
'taosd', 'system'
\]
,/data:
\[
'prodbs', 'system'
\]
,/g"
${
install_dir
}
/nginxd/admin/monitor.html
sed
-i
-e
"s/name: 'taosd',/name: 'prodbs',/g"
${
install_dir
}
/nginxd/admin/monitor.html
sed
-i
"s/TDengine/ProDB/g"
${
install_dir
}
/nginxd/admin/
*
.html
sed
-i
"s/TDengine/ProDB/g"
${
install_dir
}
/nginxd/admin/js/
*
.js
sed
-i
'/dataDir/ {s/taos/ProDB/g}'
${
install_dir
}
/cfg/taos.cfg
sed
-i
'/logDir/ {s/taos/ProDB/g}'
${
install_dir
}
/cfg/taos.cfg
sed
-i
"s/TDengine/ProDB/g"
${
install_dir
}
/cfg/taos.cfg
if
[
"
$cpuType
"
==
"aarch64"
]
;
then
cp
-f
${
install_dir
}
/nginxd/sbin/arm/64bit/nginx
${
install_dir
}
/nginxd/sbin/
elif
[
"
$cpuType
"
==
"aarch32"
]
;
then
...
...
@@ -100,6 +93,13 @@ if [ "$verMode" == "cluster" ]; then
rm
-rf
${
install_dir
}
/nginxd/sbin/arm
fi
sed
-i
'/dataDir/ {s/taos/ProDB/g}'
${
install_dir
}
/cfg/taos.cfg
sed
-i
'/logDir/ {s/taos/ProDB/g}'
${
install_dir
}
/cfg/taos.cfg
sed
-i
"s/TDengine/ProDB/g"
${
install_dir
}
/cfg/taos.cfg
sed
-i
"s/support@taosdata.com/support@hanatech.com/g"
${
install_dir
}
/cfg/taos.cfg
sed
-i
"s/taos client/prodbc/g"
${
install_dir
}
/cfg/taos.cfg
sed
-i
"s/taosd/prodbs/g"
${
install_dir
}
/cfg/taos.cfg
cd
${
install_dir
}
tar
-zcv
-f
prodb.tar.gz
*
--remove-files
||
:
exitcode
=
$?
...
...
@@ -115,58 +115,62 @@ if [ "$verMode" == "cluster" ]; then
mv
install_prodb_temp.sh
${
install_dir
}
/install_pro.sh
fi
if
[
"
$pagMode
"
==
"lite"
]
;
then
sed
's/pagMode=full/pagMode=lite/g'
${
install_dir
}
/install.sh
>>
install_prodb_temp.sh
sed
-e
"s/pagMode=full/pagMode=lite/g"
-e
"s/taos_history/prodb_history/g"
${
install_dir
}
/install.sh
>>
install_prodb_temp.sh
mv
install_prodb_temp.sh
${
install_dir
}
/install_pro.sh
fi
sed
-i
"/install_connector
$/
d"
${
install_dir
}
/install_pro.sh
sed
-i
"/install_examples
$/
d"
${
install_dir
}
/install_pro.sh
chmod
a+x
${
install_dir
}
/install_pro.sh
# Copy example code
mkdir
-p
${
install_dir
}
/examples
examples_dir
=
"
${
top_dir
}
/tests/examples"
cp
-r
${
examples_dir
}
/c
${
install_dir
}
/examples
sed
-i
'/passwd/ {s/taosdata/prodb/g}'
${
install_dir
}
/examples/c/
*
.c
sed
-i
'/root/ {s/taosdata/prodb/g}'
${
install_dir
}
/examples/c/
*
.c
if
[[
"
$pagMode
"
!=
"lite"
]]
&&
[[
"
$cpuType
"
!=
"aarch32"
]]
;
then
cp
-r
${
examples_dir
}
/JDBC
${
install_dir
}
/examples
cp
-r
${
examples_dir
}
/matlab
${
install_dir
}
/examples
mv
${
install_dir
}
/examples/matlab/TDengineDemo.m
${
install_dir
}
/examples/matlab/ProDBDemo.m
sed
-i
'/password/ {s/taosdata/prodb/g}'
${
install_dir
}
/examples/matlab/ProDBDemo.m
cp
-r
${
examples_dir
}
/python
${
install_dir
}
/examples
sed
-i
'/password/ {s/taosdata/prodb/g}'
${
install_dir
}
/examples/python/read_example.py
cp
-r
${
examples_dir
}
/R
${
install_dir
}
/examples
sed
-i
'/password/ {s/taosdata/prodb/g}'
${
install_dir
}
/examples/R/command.txt
cp
-r
${
examples_dir
}
/go
${
install_dir
}
/examples
mv
${
install_dir
}
/examples/go/taosdemo.go
${
install_dir
}
/examples/go/prodemo.go
sed
-i
'/root/ {s/taosdata/prodb/g}'
${
install_dir
}
/examples/go/prodemo.go
fi
#mkdir -p ${install_dir}/examples
#examples_dir="${top_dir}/tests/examples"
#cp -r ${examples_dir}/c ${install_dir}/examples
#sed -i '/passwd/ {s/taosdata/prodb/g}' ${install_dir}/examples/c/*.c
#sed -i '/root/ {s/taosdata/prodb/g}' ${install_dir}/examples/c/*.c
#
#if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
# cp -r ${examples_dir}/JDBC ${install_dir}/examples
# cp -r ${examples_dir}/matlab ${install_dir}/examples
# mv ${install_dir}/examples/matlab/TDengineDemo.m ${install_dir}/examples/matlab/ProDBDemo.m
# sed -i '/password/ {s/taosdata/prodb/g}' ${install_dir}/examples/matlab/ProDBDemo.m
# cp -r ${examples_dir}/python ${install_dir}/examples
# sed -i '/password/ {s/taosdata/prodb/g}' ${install_dir}/examples/python/read_example.py
# cp -r ${examples_dir}/R ${install_dir}/examples
# sed -i '/password/ {s/taosdata/prodb/g}' ${install_dir}/examples/R/command.txt
# cp -r ${examples_dir}/go ${install_dir}/examples
# mv ${install_dir}/examples/go/taosdemo.go ${install_dir}/examples/go/prodemo.go
# sed -i '/root/ {s/taosdata/prodb/g}' ${install_dir}/examples/go/prodemo.go
#fi
# Copy driver
mkdir
-p
${
install_dir
}
/driver
&&
cp
${
lib_files
}
${
install_dir
}
/driver
&&
echo
"
${
versionComp
}
"
>
${
install_dir
}
/driver/vercomp.txt
# Copy connector
connector_dir
=
"
${
code_dir
}
/connector"
mkdir
-p
${
install_dir
}
/connector
if
[[
"
$pagMode
"
!=
"lite"
]]
&&
[[
"
$cpuType
"
!=
"aarch32"
]]
;
then
cp
${
build_dir
}
/lib/
*
.jar
${
install_dir
}
/connector
||
:
if
[
-d
"
${
connector_dir
}
/grafanaplugin/dist"
]
;
then
cp
-r
${
connector_dir
}
/grafanaplugin/dist
${
install_dir
}
/connector/grafanaplugin
else
echo
"WARNING: grafanaplugin bundled dir not found, please check if want to use it!"
fi
if
find
${
connector_dir
}
/go
-mindepth
1
-maxdepth
1 |
read
;
then
cp
-r
${
connector_dir
}
/go
${
install_dir
}
/connector
else
echo
"WARNING: go connector not found, please check if want to use it!"
fi
cp
-r
${
connector_dir
}
/python
${
install_dir
}
/connector/
mv
${
install_dir
}
/connector/python/taos
${
install_dir
}
/connector/python/prodb
sed
-i
'/password/ {s/taosdata/prodb/g}'
${
install_dir
}
/connector/python/prodb/cinterface.py
sed
-i
'/password/ {s/taosdata/prodb/g}'
${
install_dir
}
/connector/python/prodb/subscription.py
sed
-i
'/self._password/ {s/taosdata/prodb/g}'
${
install_dir
}
/connector/python/prodb/connection.py
fi
#
connector_dir="${code_dir}/connector"
#
mkdir -p ${install_dir}/connector
#
if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
#
cp ${build_dir}/lib/*.jar ${install_dir}/connector ||:
#
if [ -d "${connector_dir}/grafanaplugin/dist" ]; then
#
cp -r ${connector_dir}/grafanaplugin/dist ${install_dir}/connector/grafanaplugin
#
else
#
echo "WARNING: grafanaplugin bundled dir not found, please check if want to use it!"
#
fi
#
if find ${connector_dir}/go -mindepth 1 -maxdepth 1 | read; then
#
cp -r ${connector_dir}/go ${install_dir}/connector
#
else
#
echo "WARNING: go connector not found, please check if want to use it!"
#
fi
#
cp -r ${connector_dir}/python ${install_dir}/connector/
#
mv ${install_dir}/connector/python/taos ${install_dir}/connector/python/prodb
#
sed -i '/password/ {s/taosdata/prodb/g}' ${install_dir}/connector/python/prodb/cinterface.py
#
sed -i '/password/ {s/taosdata/prodb/g}' ${install_dir}/connector/python/prodb/subscription.py
#
sed -i '/self._password/ {s/taosdata/prodb/g}' ${install_dir}/connector/python/prodb/connection.py
#
fi
cd
${
release_dir
}
...
...
src/kit/shell/inc/shell.h
浏览文件 @
9f0b8f35
...
...
@@ -27,7 +27,12 @@
#define MAX_IP_SIZE 20
#define MAX_HISTORY_SIZE 1000
#define MAX_COMMAND_SIZE 1048586
#define HISTORY_FILE ".taos_history"
#ifdef _TD_PRO_
#define HISTORY_FILE ".prodb_history"
#else
#define HISTORY_FILE ".taos_history"
#endif
#define DEFAULT_RES_SHOW_NUM 100
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录