forked from Mirrors/freeswitch
debian: Add mechanism to specify modules.conf
This commit is contained in:
parent
3f24ef16b1
commit
f840eecdb8
15
debian/util.sh
vendored
15
debian/util.sh
vendored
@ -199,9 +199,10 @@ EOF
|
|||||||
create_dsc () {
|
create_dsc () {
|
||||||
{
|
{
|
||||||
set -e
|
set -e
|
||||||
local OPTIND OPTARG modules_list="" speed="normal"
|
local OPTIND OPTARG modules_conf="" modules_list="" speed="normal"
|
||||||
while getopts 'm:s:' o "$@"; do
|
while getopts 'f:m:s:' o "$@"; do
|
||||||
case "$o" in
|
case "$o" in
|
||||||
|
f) modules_conf="$OPTARG";;
|
||||||
m) modules_list="$OPTARG";;
|
m) modules_list="$OPTARG";;
|
||||||
s) speed="$OPTARG";;
|
s) speed="$OPTARG";;
|
||||||
esac
|
esac
|
||||||
@ -213,6 +214,9 @@ create_dsc () {
|
|||||||
local dver="${orig_ver}-1~${distro}+1"
|
local dver="${orig_ver}-1~${distro}+1"
|
||||||
[ -x "$(which dch)" ] \
|
[ -x "$(which dch)" ] \
|
||||||
|| err "package devscripts isn't installed"
|
|| err "package devscripts isn't installed"
|
||||||
|
if [ -n "$modules_conf" ]; then
|
||||||
|
cp $modules_conf debian/modules.conf
|
||||||
|
fi
|
||||||
if [ -n "$modules_list" ]; then
|
if [ -n "$modules_list" ]; then
|
||||||
set_modules_${modules_list}
|
set_modules_${modules_list}
|
||||||
fi
|
fi
|
||||||
@ -298,12 +302,13 @@ build_all () {
|
|||||||
local OPTIND OPTARG
|
local OPTIND OPTARG
|
||||||
local orig_opts="" dsc_opts="" deb_opts=""
|
local orig_opts="" dsc_opts="" deb_opts=""
|
||||||
local archs="" distros="" orig="" par=false
|
local archs="" distros="" orig="" par=false
|
||||||
while getopts 'a:bc:djmno:s:v:z:' o "$@"; do
|
while getopts 'a:bc:df:jmno:s:v:z:' o "$@"; do
|
||||||
case "$o" in
|
case "$o" in
|
||||||
a) archs="$archs $OPTARG";;
|
a) archs="$archs $OPTARG";;
|
||||||
b) orig_opts="$orig_opts -b";;
|
b) orig_opts="$orig_opts -b";;
|
||||||
c) distros="$distros $OPTARG";;
|
c) distros="$distros $OPTARG";;
|
||||||
d) deb_opts="$deb_opts -d";;
|
d) deb_opts="$deb_opts -d";;
|
||||||
|
f) dsc_opts="$dsc_opts -f$OPTARG";;
|
||||||
j) par=true;;
|
j) par=true;;
|
||||||
m) dsc_opts="$dsc_opts -m$OPTARG";;
|
m) dsc_opts="$dsc_opts -m$OPTARG";;
|
||||||
n) orig_opts="$orig_opts -n";;
|
n) orig_opts="$orig_opts -n";;
|
||||||
@ -366,6 +371,8 @@ commands:
|
|||||||
-b Bundle downloaded libraries in source package
|
-b Bundle downloaded libraries in source package
|
||||||
-c Specify distributions
|
-c Specify distributions
|
||||||
-d Enable cowbuilder debug hook
|
-d Enable cowbuilder debug hook
|
||||||
|
-f <modules.conf>
|
||||||
|
Build only modules listed in this file
|
||||||
-j Build debs in parallel
|
-j Build debs in parallel
|
||||||
-m [ quicktest ]
|
-m [ quicktest ]
|
||||||
Choose custom list of modules to build
|
Choose custom list of modules to build
|
||||||
@ -387,6 +394,8 @@ commands:
|
|||||||
|
|
||||||
create-dsc <distro> <orig-file>
|
create-dsc <distro> <orig-file>
|
||||||
|
|
||||||
|
-f <modules.conf>
|
||||||
|
Build only modules listed in this file
|
||||||
-m [ quicktest ]
|
-m [ quicktest ]
|
||||||
Choose custom list of modules to build
|
Choose custom list of modules to build
|
||||||
-s [ paranoid | reckless ]
|
-s [ paranoid | reckless ]
|
||||||
|
Loading…
Reference in New Issue
Block a user