Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
04b30a8e
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
04b30a8e
编写于
2月 07, 2022
作者:
Z
zyyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change script for release
上级
52481bd7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
30 addition
and
10 deletion
+30
-10
packaging/sed_pro.sh
packaging/sed_pro.sh
+19
-0
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+11
-10
未找到文件。
packaging/sed_pro.sh
浏览文件 @
04b30a8e
#!/bin/bash
#!/bin/bash
function
replace_community_pro
()
{
function
replace_community_pro
()
{
# src/kit/taos-tools/packaging/tools/install-taostools.sh
sed
-i
"s/demoName=
\"
taosdemo
\"
/demoName=
\"
prodemo
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
sed
-i
"s/benchmarkName=
\"
taosBenchmark
\"
/benchmarkName=
\"
proBenchmark
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
sed
-i
"s/dumpName=
\"
taosdump
\"
/dumpName=
\"
prodump
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
sed
-i
"s/emailName=
\"
taosdata
\.
com
\"
/emailName=
\"
hanatech
\.
com
\.
cn
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
sed
-i
"s/taosName=
\"
taos
\"
/taosName=
\"
prodb
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
sed
-i
"s/toolsName=
\"
taostools
\"
/toolsName=
\"
prodbtools
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
cp
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-prodbtools.sh
# src/kit/taos-tools/packaging/tools/uninstall-taostools.sh
sed
-i
"s/demoName=
\"
taosdemo
\"
/demoName=
\"
prodemo
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-taostools.sh
sed
-i
"s/benchmarkName=
\"
taosBenchmark
\"
/benchmarkName=
\"
proBenchmark
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-taostools.sh
sed
-i
"s/dumpName=
\"
taosdump
\"
/dumpName=
\"
prodump
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-taostools.sh
sed
-i
"s/taosName=
\"
taos
\"
/taosName=
\"
prodb
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-taostools.sh
sed
-i
"s/toolsName=
\"
taostools
\"
/toolsName=
\"
prodbtools
\"
/g"
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-taostools.sh
cp
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-taostools.sh
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-prodbtools.sh
# src/kit/taos-tools/src/CMakeLists.txt
# src/kit/taos-tools/src/CMakeLists.txt
sed
-i
"s/taosBenchmark /proBenchmark /g"
${
top_dir
}
/src/kit/taos-tools/src/CMakeLists.txt
sed
-i
"s/taosBenchmark /proBenchmark /g"
${
top_dir
}
/src/kit/taos-tools/src/CMakeLists.txt
sed
-i
"s/taosdump /prodump /g"
${
top_dir
}
/src/kit/taos-tools/src/CMakeLists.txt
sed
-i
"s/taosdump /prodump /g"
${
top_dir
}
/src/kit/taos-tools/src/CMakeLists.txt
...
@@ -82,6 +99,8 @@ function replace_community_pro() {
...
@@ -82,6 +99,8 @@ function replace_community_pro() {
sed
-i
"s/tarName=
\"
taos
\.
tar
\.
gz
\"
/tarName=
\"
prodb
\.
tar
\.
gz
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/tarName=
\"
taos
\.
tar
\.
gz
\"
/tarName=
\"
prodb
\.
tar
\.
gz
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/dumpName=
\"
taosdump
\"
/dumpName=
\"
prodump
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/dumpName=
\"
taosdump
\"
/dumpName=
\"
prodump
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/benchmarkName=
\"
taosBenchmark
\"
/benchmarkName=
\"
proBenchmark
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/benchmarkName=
\"
taosBenchmark
\"
/benchmarkName=
\"
proBenchmark
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/toolsName=
\"
taostools
\"
/toolsName=
\"
prodbtools
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
# packaging/tools/remove.sh
# packaging/tools/remove.sh
sed
-i
"s/installDir=
\"\/
usr
\/
local
\/
taos
\"
/installDir=
\"\/
usr
\/
local
\/
ProDB
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
sed
-i
"s/installDir=
\"\/
usr
\/
local
\/
taos
\"
/installDir=
\"\/
usr
\/
local
\/
ProDB
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
sed
-i
"s/serverName=
\"
taosd
\"
/serverName=
\"
prodbs
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
sed
-i
"s/serverName=
\"
taosd
\"
/serverName=
\"
prodbs
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
...
...
packaging/tools/makepkg.sh
浏览文件 @
04b30a8e
...
@@ -27,6 +27,7 @@ configFile="taos.cfg"
...
@@ -27,6 +27,7 @@ configFile="taos.cfg"
tarName
=
"taos.tar.gz"
tarName
=
"taos.tar.gz"
dumpName
=
"taosdump"
dumpName
=
"taosdump"
benchmarkName
=
"taosBenchmark"
benchmarkName
=
"taosBenchmark"
toolsName
=
"taostools"
# create compressed install file.
# create compressed install file.
build_dir
=
"
${
compile_dir
}
/build"
build_dir
=
"
${
compile_dir
}
/build"
...
@@ -127,22 +128,22 @@ if [ -n "${taostools_bin_files}" ]; then
...
@@ -127,22 +128,22 @@ if [ -n "${taostools_bin_files}" ]; then
cp
${
taostools_bin_files
}
${
taostools_install_dir
}
/bin
&&
cp
${
taostools_bin_files
}
${
taostools_install_dir
}
/bin
&&
chmod
a+x
${
taostools_install_dir
}
/bin/
*
||
:
chmod
a+x
${
taostools_install_dir
}
/bin/
*
||
:
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
taostools
.sh
]
;
then
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
taostools
.sh
\
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
\
${
taostools_install_dir
}
/
>
/dev/null
&&
${
taostools_install_dir
}
/
>
/dev/null
&&
chmod
a+x
${
taostools_install_dir
}
/install-
taostools
.sh
||
chmod
a+x
${
taostools_install_dir
}
/install-
${
toolsName
}
.sh
||
echo
-e
"failed to copy install-
taostools
.sh"
echo
-e
"failed to copy install-
${
toolsName
}
.sh"
else
else
echo
-e
"install-
taostools
.sh not found"
echo
-e
"install-
${
toolsName
}
.sh not found"
fi
fi
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
taostools
.sh
]
;
then
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
taostools
.sh
\
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
\
${
taostools_install_dir
}
/
>
/dev/null
&&
${
taostools_install_dir
}
/
>
/dev/null
&&
chmod
a+x
${
taostools_install_dir
}
/uninstall-
taostools
.sh
||
chmod
a+x
${
taostools_install_dir
}
/uninstall-
${
toolsName
}
.sh
||
echo
-e
"failed to copy uninstall-
taostools
.sh"
echo
-e
"failed to copy uninstall-
${
toolsName
}
.sh"
else
else
echo
-e
"uninstall-
taostools
.sh not found"
echo
-e
"uninstall-
${
toolsName
}
.sh not found"
fi
fi
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录