Add convenience option for building a small subset of modules
This commit is contained in:
parent
51f7c9d3e7
commit
cab4fd4f77
|
@ -317,9 +317,9 @@ build_debs () {
|
||||||
|
|
||||||
build_all () {
|
build_all () {
|
||||||
local OPTIND OPTARG
|
local OPTIND OPTARG
|
||||||
local orig_opts="" dsc_opts="" deb_opts=""
|
local orig_opts="" dsc_opts="" deb_opts="" modlist=""
|
||||||
local archs="" distros="" orig="" depinst=false par=false
|
local archs="" distros="" orig="" depinst=false par=false
|
||||||
while getopts 'a:bc:df:ijm:no:s:v:z:' o "$@"; do
|
while getopts 'a:bc:df:ijl:m:no: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";;
|
||||||
|
@ -328,6 +328,7 @@ build_all () {
|
||||||
f) dsc_opts="$dsc_opts -f$OPTARG";;
|
f) dsc_opts="$dsc_opts -f$OPTARG";;
|
||||||
i) depinst=true;;
|
i) depinst=true;;
|
||||||
j) par=true;;
|
j) par=true;;
|
||||||
|
l) modlist="$OPTARG";;
|
||||||
m) orig_opts="$orig_opts -m$OPTARG"; 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";;
|
n) orig_opts="$orig_opts -n";;
|
||||||
o) orig="$OPTARG";;
|
o) orig="$OPTARG";;
|
||||||
|
@ -343,6 +344,12 @@ build_all () {
|
||||||
rsync git less cowbuilder ccache \
|
rsync git less cowbuilder ccache \
|
||||||
devscripts equivs build-essential
|
devscripts equivs build-essential
|
||||||
[ -n "$orig" ] || orig="$(create_orig $orig_opts HEAD | tail -n1)"
|
[ -n "$orig" ] || orig="$(create_orig $orig_opts HEAD | tail -n1)"
|
||||||
|
if [ -n "$modlist" ]; then
|
||||||
|
local modtmp="$(mktemp /tmp/modules-XXXXXXXXXX.conf)"
|
||||||
|
> $modtmp
|
||||||
|
for m in "$modlist"; do printf '%s\n' "$m" >> $modtmp; done
|
||||||
|
dsc_opts="$dsc_opts -f${modtmp}"; fi
|
||||||
|
[ -n "$orig" ] || orig="$(create_orig $orig_opts HEAD | tail -n1)"
|
||||||
mkdir -p ../log
|
mkdir -p ../log
|
||||||
> ../log/changes
|
> ../log/changes
|
||||||
echo; echo; echo; echo
|
echo; echo; echo; echo
|
||||||
|
@ -370,6 +377,7 @@ build_all () {
|
||||||
done
|
done
|
||||||
! $par || wait
|
! $par || wait
|
||||||
fi
|
fi
|
||||||
|
[ -z "$modlist" ] || rm -f $modtmp
|
||||||
trap - EXIT
|
trap - EXIT
|
||||||
cat ../log/changes
|
cat ../log/changes
|
||||||
}
|
}
|
||||||
|
@ -398,6 +406,7 @@ commands:
|
||||||
Build only modules listed in this file
|
Build only modules listed in this file
|
||||||
-i Auto install build deps on host system
|
-i Auto install build deps on host system
|
||||||
-j Build debs in parallel
|
-j Build debs in parallel
|
||||||
|
-l <modules>
|
||||||
-m [ quicktest | non-dfsg ]
|
-m [ quicktest | non-dfsg ]
|
||||||
Choose custom list of modules to build
|
Choose custom list of modules to build
|
||||||
-n Nightly build
|
-n Nightly build
|
||||||
|
|
Loading…
Reference in New Issue