Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
dc7aba55
提交
dc7aba55
authored
5月 28, 2013
作者:
Travis Cross
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add generic mechanism for building non-DFSG packages
上级
94d44f8a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
34 行增加
和
12 行删除
+34
-12
bootstrap.sh
debian/bootstrap.sh
+16
-1
util.sh
debian/util.sh
+18
-11
没有找到文件。
debian/bootstrap.sh
浏览文件 @
dc7aba55
...
...
@@ -1065,10 +1065,23 @@ genmodctl_mod () {
echo
}
set_modules_non_dfsg
()
{
local
len
=
${#
avoid_mods
}
for
((
i
=
0
;
i<len
;
i++
))
;
do
case
"
${
avoid_mods
[
$i
]
}
"
in
codecs/mod_siren|codecs/mod_ilbc
)
unset
avoid_mods[
$i
]
;;
esac
done
}
codename
=
"sid"
while
getopts
"c:"
o
;
do
modulelist_opt
=
""
while
getopts
"c:m:"
o
;
do
case
"
$o
"
in
c
)
codename
=
"
$OPTARG
"
;;
m
)
modulelist_opt
=
"
$OPTARG
"
;;
esac
done
shift
$((
$OPTIND
-
1
))
...
...
@@ -1077,6 +1090,8 @@ echo "Bootstrapping debian/ for ${codename}" >&2
echo
>
&2
echo
"Please wait, this takes a few seconds..."
>
&2
test
-z
"
$modulelist_opt
"
||
set_modules_
${
modulelist_opt
/-/_
}
echo
"Adding any new modules to control-modules..."
>
&2
parse_dir
=
control-modules.parse
map_fs_modules
':'
'genmodctl_new_cat'
'genmodctl_new_mod'
>>
control-modules
...
...
debian/util.sh
浏览文件 @
dc7aba55
...
...
@@ -153,10 +153,11 @@ create_orig () {
{
set
-e
local
OPTIND OPTARG
local
uver
=
""
hrev
=
""
bundle_deps
=
false
zl
=
9e
while
getopts
'bnv:z:'
o
"
$@
"
;
do
local
uver
=
""
hrev
=
""
bundle_deps
=
false
modules_list
=
""
zl
=
9e
while
getopts
'b
m:
nv:z:'
o
"
$@
"
;
do
case
"
$o
"
in
b
)
bundle_deps
=
true
;;
m
)
modules_list
=
"
$OPTARG
"
;;
n
)
uver
=
"nightly"
;;
v
)
uver
=
"
$OPTARG
"
;;
z
)
zl
=
"
$OPTARG
"
;;
...
...
@@ -173,9 +174,9 @@ create_orig () {
check_repo_clean
git reset
--hard
"
$treeish
"
mv
.gitattributes .gitattributes.orig
grep
.gitattributes.orig
\
-e
'\bdebian-ignore\b'
\
-e
'\bdfsg-nonfree\b'
\
local
-a
args
=(
-e
'\bdebian-ignore\b'
)
test
"
$modules_list
"
=
"non-dfsg"
||
args+
=(
-e
'\bdfsg-nonfree\b'
)
grep
.gitattributes.orig
"
${
args
[@]
}
"
\
|
while
xread l
;
do
echo
"
$l
export-ignore"
>>
.gitattributes
done
...
...
@@ -226,10 +227,13 @@ create_dsc () {
if
[
-n
"
$modules_conf
"
]
;
then
cp
$modules_conf
debian/modules.conf
fi
local
bootstrap_args
=
""
if
[
-n
"
$modules_list
"
]
;
then
set_modules_
${
modules_list
}
if
[
"
$modules_list
"
=
"non-dfsg"
]
;
then
bootstrap_args
=
"-mnon-dfsg"
else
set_modules_
${
modules_list
}
;
fi
fi
(
cd
debian
&&
./bootstrap.sh
-c
$distro
)
(
cd
debian
&&
./bootstrap.sh
-c
$distro
$bootstrap_args
)
case
"
$speed
"
in
paranoid
)
sed
-i
./debian/rules
\
-e
'/\.stamp-bootstrap:/{:l2 n; /\.\/bootstrap.sh -j/{s/ -j//; :l3 n; b l3}; b l2};'
;;
...
...
@@ -238,7 +242,8 @@ create_dsc () {
esac
[
"
$zl
"
-ge
"1"
]
||
zl
=
1
git add debian/rules
git
rm
-rf
--ignore-unmatch
libs/libg722_1 libs/ilbc
[
"
$modules_list
"
=
"non-dfsg"
]
\
||
git
rm
-rf
--ignore-unmatch
libs/libg722_1 libs/ilbc
dch
-b
-m
-v
"
$dver
"
--force-distribution
-D
"
$suite
"
"Nightly build."
git add debian/changelog
&&
git commit
-m
"nightly v
$orig_ver
"
dpkg-source
-i
.
*
-Zxz
-z
${
zl
}
-b
.
...
...
@@ -324,7 +329,7 @@ build_all () {
d
)
deb_opts
=
"
$deb_opts
-d"
;;
f
)
dsc_opts
=
"
$dsc_opts
-f
$OPTARG
"
;;
j
)
par
=
true
;;
m
)
dsc_opts
=
"
$dsc_opts
-m
$OPTARG
"
;;
m
)
orig_opts
=
"
$orig_opts
-m
$OPTARG
"
;
dsc_opts
=
"
$dsc_opts
-m
$OPTARG
"
;;
n
)
orig_opts
=
"
$orig_opts
-n"
;;
o
)
orig
=
"
$OPTARG
"
;;
s
)
dsc_opts
=
"
$dsc_opts
-s
$OPTARG
"
;;
...
...
@@ -390,7 +395,7 @@ commands:
-f <modules.conf>
Build only modules listed in this file
-j Build debs in parallel
-m [ quicktest ]
-m [ quicktest
| non-dfsg
]
Choose custom list of modules to build
-n Nightly build
-o <orig-file>
...
...
@@ -414,7 +419,7 @@ commands:
-f <modules.conf>
Build only modules listed in this file
-m [ quicktest ]
-m [ quicktest
| non-dfsg
]
Choose custom list of modules to build
-s [ paranoid | reckless ]
Set FS bootstrap/build -j flags
...
...
@@ -423,6 +428,8 @@ commands:
create-orig <treeish>
-b Bundle downloaded libraries in source package
-m [ quicktest | non-dfsg ]
Choose custom list of modules to build
-n Nightly build
-v Set version
-z Set compression level
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论