Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
b602a77c
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
b602a77c
编写于
4月 21, 2022
作者:
H
Hui Li
提交者:
GitHub
4月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #11539 from taosdata/test/chr/TD-14699
build: modify install.sh
上级
29c7cbf4
2fc27261
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
31 addition
and
10 deletion
+31
-10
packaging/install.sh
packaging/install.sh
+23
-2
packaging/release.sh
packaging/release.sh
+8
-8
未找到文件。
packaging/install.sh
浏览文件 @
b602a77c
...
...
@@ -30,6 +30,15 @@ bin_dir="/usr/local/taos/bin"
service_config_dir
=
"/etc/systemd/system"
#taos-tools para
demoName
=
"taosdemo"
benchmarkName
=
"taosBenchmark"
dumpName
=
"taosdump"
emailName
=
"taosdata.com"
taosName
=
"taos"
toolsName
=
"taostools"
# Color setting
RED
=
'\033[0;31m'
GREEN
=
'\033[1;32m'
...
...
@@ -230,8 +239,20 @@ function install_header() {
# temp install taosBenchmark
function
install_taosTools
()
{
cd
${
script_dir
}
/taos-tools/
tar
xvf taosTools-1.4.1-Linux-x64.tar.gz
&&
cd
taosTools-1.4.1/
&&
./install-taostools.sh
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
benchmarkName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
dumpName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/rm
${
toolsName
}
||
:
${
csudo
}
/usr/bin/install
-c
-m
755
${
script_dir
}
/bin/
${
dumpName
}
${
install_main_dir
}
/bin/
${
dumpName
}
${
csudo
}
/usr/bin/install
-c
-m
755
${
script_dir
}
/bin/
${
benchmarkName
}
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
csudo
}
ln
-sf
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
install_main_dir
}
/bin/
${
demoName
}
#Make link
[[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]]
&&
\
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
benchmarkName
}
||
:
[[
-x
${
install_main_dir
}
/bin/
${
demoName
}
]]
&&
\
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
demoName
}
${
bin_link_dir
}
/
${
demoName
}
||
:
[[
-x
${
install_main_dir
}
/bin/
${
dumpName
}
]]
&&
\
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
dumpName
}
${
bin_link_dir
}
/
${
dumpName
}
||
:
}
function
add_newHostname_to_hosts
()
{
...
...
packaging/release.sh
浏览文件 @
b602a77c
...
...
@@ -39,7 +39,7 @@ cd ${compile_dir}
echo
"compile_dir:
${
compile_dir
}
"
cmake ..
cmake ..
-DBUILD_TOOLS
=
true
make
-j32
release_dir
=
"
${
top_dir
}
/release"
...
...
@@ -55,7 +55,6 @@ mkdir -p ${install_dir}
mkdir
-p
${
install_dir
}
/bin
mkdir
-p
${
install_dir
}
/lib
mkdir
-p
${
install_dir
}
/inc
mkdir
-p
${
install_dir
}
/taos-tools
install_files
=
"
${
script_dir
}
/install.sh"
chmod
a+x
${
script_dir
}
/install.sh
||
:
...
...
@@ -64,13 +63,14 @@ cp ${install_files} ${install_dir}
header_files
=
"
${
top_dir
}
/include/client/taos.h
${
top_dir
}
/include/util/taoserror.h"
cp
${
header_files
}
${
install_dir
}
/inc
bin_files
=
"
${
compile_dir
}
/build/bin/taosd
${
compile_dir
}
/build/bin/taos
${
compile_dir
}
/build/bin/create_table
${
compile_dir
}
/build/bin/tmq_sim
${
script_dir
}
/remove.sh"
cp
${
bin_files
}
${
install_dir
}
/bin
&&
chmod
a+x
${
install_dir
}
/bin/
*
||
:
bin_files
=
"
${
compile_dir
}
/source/dnode/mgmt/taosd
${
compile_dir
}
/tools/shell/taos
${
compile_dir
}
/tests/test/c/create_table
${
compile_dir
}
/tests/test/c/tmq_sim
${
script_dir
}
/remove.sh
${
compile_dir
}
/build/bin/taosBenchmark
${
compile_dir
}
/build/bin/taosdump"
cp
-rf
${
bin_files
}
${
install_dir
}
/bin
&&
chmod
a+x
${
install_dir
}
/bin/
*
||
:
cp
-rf
${
compile_dir
}
/source/client/libtaos.so
${
install_dir
}
/lib/
cp
-rf
${
compile_dir
}
/source/libs/tdb/libtdb.so
${
install_dir
}
/lib/
cp
-rf
${
compile_dir
}
/build/lib/libavro
*
${
install_dir
}
/lib/
>
/dev/null
||
echo
-e
"failed to copy avro libraries"
cp
-rf
${
compile_dir
}
/build/lib/pkgconfig
${
install_dir
}
/lib/
>
/dev/null
||
echo
-e
"failed to copy pkgconfig directory"
cp
${
compile_dir
}
/build/lib/libtaos.so
${
install_dir
}
/lib/
cp
${
compile_dir
}
/build/lib/libtdb.so
${
install_dir
}
/lib/
taostoolfile
=
"
${
top_dir
}
/tools/taosTools-1.4.1-Linux-x64.tar.gz"
cp
${
taostoolfile
}
${
install_dir
}
/taos-tools
#cp ${compile_dir}/source/dnode/mnode/impl/libmnode.so ${install_dir}/lib/
#cp ${compile_dir}/source/dnode/qnode/libqnode.so ${install_dir}/lib/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录