mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
ci/debian: accept the codename for which we are packaging
This commit is contained in:
parent
702008b851
commit
0553518f67
10
debian/bootstrap.sh
vendored
10
debian/bootstrap.sh
vendored
@ -788,6 +788,16 @@ genmodctl_mod () {
|
|||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
codename="sid"
|
||||||
|
while getopts "r:" o; do
|
||||||
|
case "$o" in
|
||||||
|
r) codename="$OPTARG" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
shift $(($OPTIND-1))
|
||||||
|
|
||||||
|
echo "Bootstrapping debian/ for ${codename}" >&2
|
||||||
|
echo >&2
|
||||||
echo "Please wait, this takes a few seconds..." >&2
|
echo "Please wait, this takes a few seconds..." >&2
|
||||||
|
|
||||||
parse_dir=control-modules.parse
|
parse_dir=control-modules.parse
|
||||||
|
@ -12,6 +12,7 @@ datestamp="$(date +%Y%m%dT%H%M%SZ)"
|
|||||||
nightly="n${datestamp}"
|
nightly="n${datestamp}"
|
||||||
build="b$2"
|
build="b$2"
|
||||||
distro=${3:="unstable"}
|
distro=${3:="unstable"}
|
||||||
|
codename=${4:="sid"}
|
||||||
|
|
||||||
fver="${ver}~${nightly}~${build}"
|
fver="${ver}~${nightly}~${build}"
|
||||||
fname="freeswitch-$fver"
|
fname="freeswitch-$fver"
|
||||||
@ -58,13 +59,13 @@ echo "Compressing $orig.tar with xz -6..." >&2
|
|||||||
xz -6 $orig.tar
|
xz -6 $orig.tar
|
||||||
|
|
||||||
cd $bdir
|
cd $bdir
|
||||||
(cd debian && ./bootstrap.sh)
|
(cd debian && ./bootstrap.sh -c "$codename")
|
||||||
# dch can't handle comments in control file
|
# dch can't handle comments in control file
|
||||||
(cd debian; \
|
(cd debian; \
|
||||||
mv control control.orig; \
|
mv control control.orig; \
|
||||||
grep -e '^#' -v control.orig > control)
|
grep -e '^#' -v control.orig > control)
|
||||||
# dependency: libparse-debcontrol-perl
|
# dependency: libparse-debcontrol-perl
|
||||||
dch -b -v "${fver}-1" \
|
dch -b -v "${fver}-1~${codename}+1" \
|
||||||
-M --force-distribution -D "$distro" \
|
-M --force-distribution -D "$distro" \
|
||||||
"Nightly build at ${datestamp}."
|
"Nightly build at ${datestamp}."
|
||||||
# dependency: fakeroot
|
# dependency: fakeroot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user