Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
40fc0e2d
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
40fc0e2d
编写于
3月 21, 2017
作者:
D
David Sharp
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add function to expand glob and ensure file exists
Signed-off-by:
N
Jingyi Mei
<
jmei@pivotal.io
>
上级
1694440c
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
8 addition
and
4 deletion
+8
-4
concourse/scripts/compile_gpdb.bash
concourse/scripts/compile_gpdb.bash
+8
-4
未找到文件。
concourse/scripts/compile_gpdb.bash
浏览文件 @
40fc0e2d
...
...
@@ -7,6 +7,12 @@ GPDB_ARTIFACTS_DIR=$(pwd)/$OUTPUT_ARTIFACT_DIR
CWDIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
function
expand_glob_ensure_exists
()
{
local
-a
glob
=(
$*
)
[
-e
"
${
glob
[0]
}
"
]
echo
"
${
glob
[0]
}
"
}
function
prep_env_for_centos
()
{
case
"
$TARGET_OS_VERSION
"
in
5
)
...
...
@@ -43,7 +49,7 @@ function prep_env_for_centos() {
}
function prep_env_for_sles() {
export JAVA_HOME=
"
$(
ls
-1d
/usr/java/jdk1.7
*
|
tail
-1
)
"
export JAVA_HOME=
$(
expand_glob_ensure_exists /usr/java/jdk1.7
*
)
export PATH=
${
JAVA_HOME
}
/bin:
${
PATH
}
source /opt/gcc_env.sh
}
...
...
@@ -71,9 +77,7 @@ function make_sync_tools() {
}
function link_tools_for_sles() {
local -a python_dirs=( "
$(
pwd
)
"/gpdb_src/gpAux/ext/*/python-2.7.12 )
[ -d "
${
python_dirs
[0]
}
" ]
ln -sf "
${
python_dirs
[0]
}
" /opt
ln -sf "
$(
expand_glob_ensure_exists
"
$(
pwd
)
"
/gpdb_src/gpAux/ext/
*
/python-2.7.12
)
" /opt
}
function build_gpdb() {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录