forked from Mirrors/freeswitch
Refactor generation of debian/modules_.conf
This commit is contained in:
parent
0030ce440e
commit
9268f24031
17
debian/bootstrap.sh
vendored
17
debian/bootstrap.sh
vendored
@ -937,12 +937,11 @@ genoverrides_per_mod () {
|
||||
test -f $f.tmpl && cat $f.tmpl >> $f
|
||||
}
|
||||
|
||||
genmodules_per_cat () {
|
||||
echo "## $category" >> modules_.conf
|
||||
}
|
||||
|
||||
genmodules_per_mod () {
|
||||
echo "$module" >> modules_.conf
|
||||
genmodulesconf () {
|
||||
genmodules_per_cat () { echo "## $category"; }
|
||||
genmodules_per_mod () { echo "$module"; }
|
||||
print_edit_warning
|
||||
map_modules 'mod_filter' 'genmodules_per_cat' 'genmodules_per_mod'
|
||||
}
|
||||
|
||||
genconf () {
|
||||
@ -1199,10 +1198,10 @@ echo "Generating debian/ (lang)..." >&2
|
||||
map_langs 'genlang'
|
||||
echo "Generating debian/ (modules)..." >&2
|
||||
(echo "### modules"; echo) >> control
|
||||
print_edit_warning > modules_.conf
|
||||
genmodulesconf > modules_.conf
|
||||
map_modules "mod_filter" \
|
||||
"gencontrol_per_cat genmodules_per_cat" \
|
||||
"gencontrol_per_mod geninstall_per_mod genoverrides_per_mod genmodules_per_mod"
|
||||
"gencontrol_per_cat" \
|
||||
"gencontrol_per_mod geninstall_per_mod genoverrides_per_mod"
|
||||
echo "Generating debian/ (-all package)..." >&2
|
||||
grep -e '^Package:' control | grep -v '^freeswitch-all$' | while xread l; do
|
||||
m="${l#*: }"
|
||||
|
Loading…
Reference in New Issue
Block a user