mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 09:12:25 +00:00
ci: automatically add datestamp to debian nightly build
This commit is contained in:
parent
c408911551
commit
1aa303d275
@ -19,7 +19,9 @@ minor=$(echo "$ver" | cut -d. -f2)
|
|||||||
micro=$(echo "$ver" | cut -d. -f3)
|
micro=$(echo "$ver" | cut -d. -f3)
|
||||||
rev=$(echo "$ver" | cut -d. -f4)
|
rev=$(echo "$ver" | cut -d. -f4)
|
||||||
|
|
||||||
build="$2"
|
datestamp="$(date +%Y%m%dT%H%M%SZ)"
|
||||||
|
nightly="n${datestamp}"
|
||||||
|
build="b$2"
|
||||||
input_distro=$3
|
input_distro=$3
|
||||||
distro=${input_distro:="unstable"}
|
distro=${input_distro:="unstable"}
|
||||||
|
|
||||||
@ -27,7 +29,7 @@ dst_version="$major.$minor.$micro"
|
|||||||
dst_name="freeswitch-${dst_version}"
|
dst_name="freeswitch-${dst_version}"
|
||||||
dst_parent="/tmp/"
|
dst_parent="/tmp/"
|
||||||
dst_dir="/tmp/${dst_name}"
|
dst_dir="/tmp/${dst_name}"
|
||||||
dst_full_version="${dst_version}.${build}"
|
dst_full_version="${dst_version}.${nightly}.${build}"
|
||||||
dst_full_name="freeswitch-${dst_full_version}"
|
dst_full_name="freeswitch-${dst_full_version}"
|
||||||
|
|
||||||
mkdir -p $src_repo/debbuild/
|
mkdir -p $src_repo/debbuild/
|
||||||
@ -42,7 +44,9 @@ echo "changing directory to ${src_repo}/debbuild/${dst_full_name}"
|
|||||||
|
|
||||||
cd ${src_repo}/debbuild/${dst_full_name}
|
cd ${src_repo}/debbuild/${dst_full_name}
|
||||||
|
|
||||||
dch -v "${dst_full_version}-1" -M --force-distribution -D "$distro" "Nightly Build"
|
dch -v "${dst_full_version}-1" \
|
||||||
|
-M --force-distribution -D "$distro" \
|
||||||
|
"Nightly build at ${datestamp}."
|
||||||
|
|
||||||
dpkg-buildpackage -rfakeroot -S -us -uc
|
dpkg-buildpackage -rfakeroot -S -us -uc
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user