Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
obproxy
提交
1c05ac13
O
obproxy
项目概览
oceanbase
/
obproxy
1 年多 前同步成功
通知
11
Star
100
Fork
70
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obproxy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
1c05ac13
编写于
3月 07, 2022
作者:
W
wangzelin.wzl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add build rpm logic
上级
c9d4ae0f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
9 deletion
+31
-9
build.sh
build.sh
+9
-8
deps/3rd/obproxy.spec
deps/3rd/obproxy.spec
+3
-1
rpm/obproxy-ce-VER.txt
rpm/obproxy-ce-VER.txt
+1
-0
rpm/obproxy-ce-build.sh
rpm/obproxy-ce-build.sh
+18
-0
未找到文件。
build.sh
浏览文件 @
1c05ac13
...
@@ -4,7 +4,13 @@ DEP_DIR=${TOPDIR}/deps/3rd/usr/local/oceanbase/deps/devel
...
@@ -4,7 +4,13 @@ DEP_DIR=${TOPDIR}/deps/3rd/usr/local/oceanbase/deps/devel
TOOLS_DIR
=
${
TOPDIR
}
/deps/3rd/usr/local/oceanbase/devtools
TOOLS_DIR
=
${
TOPDIR
}
/deps/3rd/usr/local/oceanbase/devtools
RUNTIME_DIR
=
${
TOPDIR
}
/deps/3rd/usr
RUNTIME_DIR
=
${
TOPDIR
}
/deps/3rd/usr
CPU_CORES
=
`
grep
-c
^processor /proc/cpuinfo
`
CPU_CORES
=
`
grep
-c
^processor /proc/cpuinfo
`
MAKE_ARGS
=(
-j
$CPU_CORES
)
MAKE_ARGS
=
"-j
$CPU_CORES
"
PACKAGE
=
${
2
:-
obproxy
-ce
}
VERSION
=
${
3
:-
`
cat
rpm/
${
PACKAGE
}
-VER
.txt
`
}
RELEASE
=
${
4
:-
1
}
PREFIX
=
/home/admin/obproxy
SPEC_FILE
=
obproxy.spec
function
sw
()
function
sw
()
{
{
...
@@ -35,7 +41,7 @@ function do_init()
...
@@ -35,7 +41,7 @@ function do_init()
function
do_dep_init
()
function
do_dep_init
()
{
{
(
cd
$TOPDIR
/deps/3rd
&&
bash dep_create.sh
)
cd
$TOPDIR
/deps/3rd
&&
bash dep_create.sh
cd
$TOPDIR
cd
$TOPDIR
do_init
do_init
}
}
...
@@ -83,18 +89,13 @@ function do_make()
...
@@ -83,18 +89,13 @@ function do_make()
{
{
set
-x
set
-x
sw
sw
make
"
${
MAKE_ARGS
[@]
}
"
make
$MAKE_ARGS
}
}
function
do_rpm
()
function
do_rpm
()
{
{
set
-x
set
-x
sw
sw
PACKAGE
=
obproxy-ce
VERSION
=
3.2.0
RELEASE
=
1
PREFIX
=
/home/admin/obproxy
SPEC_FILE
=
obproxy.spec
echo
"[BUILD] make dist..."
echo
"[BUILD] make dist..."
make dist-gzip
||
exit
1
make dist-gzip
||
exit
1
...
...
deps/3rd/obproxy.spec
浏览文件 @
1c05ac13
...
@@ -36,7 +36,9 @@ OceanBase Database Proxy
...
@@ -36,7 +36,9 @@ OceanBase Database Proxy
%build
%build
./configure CXX=${CXX} CC=${CC} --with-gcc-version=5.2.0 RELEASEID=%{RELEASE} --prefix=%{_prefix} --with-test-case=no --with-release=yes --with-tblib-root=/opt/csr/common --with-easy-root=/usr --with-easy-lib-path=/usr/lib64 --with-svnfile --enable-shared=default --enable-silent-rules
./configure CXX=${CXX} CC=${CC} --with-gcc-version=5.2.0 RELEASEID=%{RELEASE} --prefix=%{_prefix} --with-test-case=no --with-release=yes --with-tblib-root=/opt/csr/common --with-easy-root=/usr --with-easy-lib-path=/usr/lib64 --with-svnfile --enable-shared=default --enable-silent-rules
mkdir -p unittest
mkdir -p unittest
make %{?_smp_mflags}
CPU_CORES=`grep -c ^processor /proc/cpuinfo`
MAKE_ARGS="-j $CPU_CORES"
make $MAKE_ARGS
%install
%install
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install
...
...
rpm/obproxy-ce-VER.txt
0 → 100644
浏览文件 @
1c05ac13
3.2.0
\ No newline at end of file
rpm/obproxy-ce-build.sh
0 → 100644
浏览文件 @
1c05ac13
#!/bin/bash
# use by rpm build platform
SCRIPT_DIR
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
TOP_DIR
=
${
1
:-${
SCRIPT_DIR
}
/../
}
PACKAGE
=
$2
VERSION
=
$3
RELEASE
=
$4
# prepare rpm build dirs
cd
$TOP_DIR
sh build.sh clean
# build rpm
cd
$TOP_DIR
sh build.sh rpm
$PACKAGE
$VERSION
$RELEASE
find
$TOP_DIR
/
-name
"*.rpm"
-maxdepth
1
-exec
mv
{}
$SCRIPT_DIR
2>/dev/null
\;
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录