Refactor generation of debian/modules_.conf

This commit is contained in:
Travis Cross 2013-11-19 21:59:53 +00:00
parent 0030ce440e
commit 9268f24031

17
debian/bootstrap.sh vendored
View File

@ -937,12 +937,11 @@ genoverrides_per_mod () {
test -f $f.tmpl && cat $f.tmpl >> $f test -f $f.tmpl && cat $f.tmpl >> $f
} }
genmodules_per_cat () { genmodulesconf () {
echo "## $category" >> modules_.conf genmodules_per_cat () { echo "## $category"; }
} genmodules_per_mod () { echo "$module"; }
print_edit_warning
genmodules_per_mod () { map_modules 'mod_filter' 'genmodules_per_cat' 'genmodules_per_mod'
echo "$module" >> modules_.conf
} }
genconf () { genconf () {
@ -1199,10 +1198,10 @@ echo "Generating debian/ (lang)..." >&2
map_langs 'genlang' map_langs 'genlang'
echo "Generating debian/ (modules)..." >&2 echo "Generating debian/ (modules)..." >&2
(echo "### modules"; echo) >> control (echo "### modules"; echo) >> control
print_edit_warning > modules_.conf genmodulesconf > modules_.conf
map_modules "mod_filter" \ map_modules "mod_filter" \
"gencontrol_per_cat genmodules_per_cat" \ "gencontrol_per_cat" \
"gencontrol_per_mod geninstall_per_mod genoverrides_per_mod genmodules_per_mod" "gencontrol_per_mod geninstall_per_mod genoverrides_per_mod"
echo "Generating debian/ (-all package)..." >&2 echo "Generating debian/ (-all package)..." >&2
grep -e '^Package:' control | grep -v '^freeswitch-all$' | while xread l; do grep -e '^Package:' control | grep -v '^freeswitch-all$' | while xread l; do
m="${l#*: }" m="${l#*: }"