Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
000e78df
提交
000e78df
authored
5月 06, 2012
作者:
Travis Cross
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ci: style
上级
52dbfabd
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
20 行增加
和
19 行删除
+20
-19
debsrcbuilder.sh
scripts/ci/debsrcbuilder.sh
+12
-11
src_tarball.sh
scripts/ci/src_tarball.sh
+8
-8
没有找到文件。
scripts/ci/debsrcbuilder.sh
浏览文件 @
000e78df
...
@@ -24,22 +24,23 @@ input_distro=$3
...
@@ -24,22 +24,23 @@ input_distro=$3
distro
=
${
input_distro
:
=
"unstable"
}
distro
=
${
input_distro
:
=
"unstable"
}
dst_version
=
"
$major
.
$minor
.
$micro
"
dst_version
=
"
$major
.
$minor
.
$micro
"
dst_name
=
"freeswitch-
$
dst_version
"
dst_name
=
"freeswitch-
$
{
dst_version
}
"
dst_parent
=
"/tmp/"
dst_parent
=
"/tmp/"
dst_dir
=
"/tmp/
$
dst_name
"
dst_dir
=
"/tmp/
$
{
dst_name
}
"
dst_full_version
=
"
$
dst_version
.
$build
"
dst_full_version
=
"
$
{
dst_version
}
.
${
build
}
"
dst_full_name
=
"freeswitch-
$
dst_full_version
"
dst_full_name
=
"freeswitch-
$
{
dst_full_version
}
"
mkdir
-p
$src_repo
/debbuild/
mkdir
-p
$src_repo
/debbuild/
tar
xjf src_dist/
$dst_name
.tar.bz2
-C
$src_repo
/debbuild/
tar
xjf src_dist/
${
dst_name
}
.tar.bz2
-C
${
src_repo
}
/debbuild/
mv
$src_repo
/debbuild/
$dst_name
$src_repo
/debbuild/
$dst_full_name
mv
${
src_repo
}
/debbuild/
${
dst_name
}
${
src_repo
}
/debbuild/
${
dst_full_name
}
mv
src_dist/
$dst_name
.tar.bz2
$src_repo
/debbuild/freeswitch_
${
dst_full_version
}
.orig.tar.bz2
mv
src_dist/
${
dst_name
}
.tar.bz2
\
${
src_repo
}
/debbuild/freeswitch_
${
dst_full_version
}
.orig.tar.bz2
# Build the debian source package first, from the source tar file.
# Build the debian source package first, from the source tar file.
echo
"changing directory to
$
src_repo
/debbuild/
$dst_full_name
"
echo
"changing directory to
$
{
src_repo
}
/debbuild/
${
dst_full_name
}
"
cd
$
src_repo
/debbuild/
$dst_full_name
cd
$
{
src_repo
}
/debbuild/
${
dst_full_name
}
dch
-v
"
${
dst_full_version
}
-1"
-M
--force-distribution
-D
"
$distro
"
"Nightly Build"
dch
-v
"
${
dst_full_version
}
-1"
-M
--force-distribution
-D
"
$distro
"
"Nightly Build"
...
@@ -52,8 +53,8 @@ if [ $status -gt 0 ]; then
...
@@ -52,8 +53,8 @@ if [ $status -gt 0 ]; then
else
else
cat
1>&2
<<
EOF
cat
1>&2
<<
EOF
----------------------------------------------------------------------
----------------------------------------------------------------------
The
v
$ver
-
$build
DEB-SRCs have been rolled, now we
The
${
dst_full_name
}
DEB-SRCs have been rolled, now we
just need to push them to the
YUM R
epo
just need to push them to the
Debian r
epo
----------------------------------------------------------------------
----------------------------------------------------------------------
EOF
EOF
fi
fi
...
...
scripts/ci/src_tarball.sh
浏览文件 @
000e78df
...
@@ -61,20 +61,20 @@ cd $dst_parent
...
@@ -61,20 +61,20 @@ cd $dst_parent
ls
ls
tar
-cvf
$
dst_name
.tar
$dst_name
tar
-cvf
$
{
dst_name
}
.tar
$dst_name
# gzip -9 -c $
dst_name
.tar > $dst_name.tar.gz || echo "gzip not available"
# gzip -9 -c $
{dst_name}
.tar > $dst_name.tar.gz || echo "gzip not available"
bzip2
-z
-k
$
dst_name
.tar
||
echo
"bzip2 not available"
bzip2
-z
-k
$
{
dst_name
}
.tar
||
echo
"bzip2 not available"
# xz -z -9 -k $
dst_name
.tar || echo "xz / xz-utils not available"
# xz -z -9 -k $
{dst_name}
.tar || echo "xz / xz-utils not available"
rm
-rf
$
dst_name
.tar
$dst_dir
rm
-rf
$
{
dst_name
}
.tar
$dst_dir
mkdir
-p
$
src_repo
/src_dist
mkdir
-p
$
{
src_repo
}
/src_dist
mv
-f
$
dst_name
.tar.
*
$src_repo
/src_dist
mv
-f
$
{
dst_name
}
.tar.
*
${
src_repo
}
/src_dist
cat
1>&2
<<
EOF
cat
1>&2
<<
EOF
----------------------------------------------------------------------
----------------------------------------------------------------------
The
v
$ver
-
$build
tarballs have been rolled,
The
freeswitch-
${
ver
}
.
${
build
}
tarballs have been rolled,
now we just need to roll packages with them
now we just need to roll packages with them
----------------------------------------------------------------------
----------------------------------------------------------------------
EOF
EOF
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论