forked from Mirrors/freeswitch
Add util option to customize suite names
This lets us set the suite name in the changelog file to e.g. sid-experimental. This way we can share a single debian repo URL for all versions, but make sure that incoming files are directed to the correct distro.
This commit is contained in:
parent
e62f2481e8
commit
e364450a57
|
@ -209,12 +209,13 @@ EOF
|
||||||
create_dsc () {
|
create_dsc () {
|
||||||
{
|
{
|
||||||
set -e
|
set -e
|
||||||
local OPTIND OPTARG modules_conf="" modules_list="" speed="normal" zl=9
|
local OPTIND OPTARG modules_conf="" modules_list="" speed="normal" suite_postfix="" suite_postfix_p=false zl=9
|
||||||
while getopts 'f:m:s:z:' o "$@"; do
|
while getopts 'f:m:s:u:z:' o "$@"; do
|
||||||
case "$o" in
|
case "$o" in
|
||||||
f) modules_conf="$OPTARG";;
|
f) modules_conf="$OPTARG";;
|
||||||
m) modules_list="$OPTARG";;
|
m) modules_list="$OPTARG";;
|
||||||
s) speed="$OPTARG";;
|
s) speed="$OPTARG";;
|
||||||
|
u) suite_postfix="$OPTARG"; suite_postfix_p=true; ;;
|
||||||
z) zl="$OPTARG";;
|
z) zl="$OPTARG";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -223,6 +224,7 @@ create_dsc () {
|
||||||
local suite="$(find_suite $distro)"
|
local suite="$(find_suite $distro)"
|
||||||
local orig_ver="$(echo "$orig" | sed -e 's/^.*_//' -e 's/\.orig\.tar.*$//')"
|
local orig_ver="$(echo "$orig" | sed -e 's/^.*_//' -e 's/\.orig\.tar.*$//')"
|
||||||
local dver="${orig_ver}-1~${distro}+1"
|
local dver="${orig_ver}-1~${distro}+1"
|
||||||
|
$suite_postfix_p && { suite="${distro}${suite_postfix}"; }
|
||||||
[ -x "$(which dch)" ] \
|
[ -x "$(which dch)" ] \
|
||||||
|| err "package devscripts isn't installed"
|
|| err "package devscripts isn't installed"
|
||||||
if [ -n "$modules_conf" ]; then
|
if [ -n "$modules_conf" ]; then
|
||||||
|
@ -320,7 +322,7 @@ build_all () {
|
||||||
local OPTIND OPTARG
|
local OPTIND OPTARG
|
||||||
local orig_opts="" dsc_opts="" deb_opts="" modlist=""
|
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:ijl:m:no:s:v:z:' o "$@"; do
|
while getopts 'a:bc:df:ijl:m:no:s:u: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";;
|
||||||
|
@ -334,6 +336,7 @@ build_all () {
|
||||||
n) orig_opts="$orig_opts -n";;
|
n) orig_opts="$orig_opts -n";;
|
||||||
o) orig="$OPTARG";;
|
o) orig="$OPTARG";;
|
||||||
s) dsc_opts="$dsc_opts -s$OPTARG";;
|
s) dsc_opts="$dsc_opts -s$OPTARG";;
|
||||||
|
u) dsc_opts="$dsc_opts -u$OPTARG";;
|
||||||
v) orig_opts="$orig_opts -v$OPTARG";;
|
v) orig_opts="$orig_opts -v$OPTARG";;
|
||||||
z) orig_opts="$orig_opts -z$OPTARG"; dsc_opts="$dsc_opts -z$OPTARG";;
|
z) orig_opts="$orig_opts -z$OPTARG"; dsc_opts="$dsc_opts -z$OPTARG";;
|
||||||
esac
|
esac
|
||||||
|
@ -415,6 +418,8 @@ commands:
|
||||||
Specify existing .orig.tar.xz file
|
Specify existing .orig.tar.xz file
|
||||||
-s [ paranoid | reckless ]
|
-s [ paranoid | reckless ]
|
||||||
Set FS bootstrap/build -j flags
|
Set FS bootstrap/build -j flags
|
||||||
|
-u <suite-postfix>
|
||||||
|
Specify a custom suite postfix
|
||||||
-v Set version
|
-v Set version
|
||||||
-z Set compression level
|
-z Set compression level
|
||||||
|
|
||||||
|
@ -436,6 +441,8 @@ commands:
|
||||||
Choose custom list of modules to build
|
Choose custom list of modules to build
|
||||||
-s [ paranoid | reckless ]
|
-s [ paranoid | reckless ]
|
||||||
Set FS bootstrap/build -j flags
|
Set FS bootstrap/build -j flags
|
||||||
|
-u <suite-postfix>
|
||||||
|
Specify a custom suite postfix
|
||||||
-z Set compression level
|
-z Set compression level
|
||||||
|
|
||||||
create-orig <treeish>
|
create-orig <treeish>
|
||||||
|
|
Loading…
Reference in New Issue