Skip to content

Commit 3e92c17

Browse files
committed
don't leave the builds as unreleased, include the current ubuntu version (or one passed via env variable)
1 parent 7041cbf commit 3e92c17

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

deb/build-debs.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ help()
2525
exit 0
2626
}
2727

28-
DEBUILD_FLAGS="-us -uc -i -I.git"
28+
[ -z "$DEBUILD_FLAGS" ] && DEBUILD_FLAGS="-us -uc -i -I.git"
2929

3030
if [ -z "$1" ]; then
3131
help
@@ -100,7 +100,7 @@ bzr revert
100100
EPOCH=$(dpkg-parsechangelog | sed '/Version/!d; s/.* //; s/:.*//;')
101101
TODAY=$(date +%Y%m%d)
102102
#actually bump the changelog up. don't include a git hash here right now.
103-
dch -b -v $EPOCH:0.$GIT_MAJOR_RELEASE.$GIT_MINOR_RELEASE$DELIMITTER$GIT_TYPE.$TODAY.-$DEBIAN_SUFFIX ""
103+
dch -b -v $EPOCH:0.$GIT_MAJOR_RELEASE.$GIT_MINOR_RELEASE$DELIMITTER$GIT_TYPE.$TODAY.-$DEBIAN_SUFFIX "Automated Build"
104104

105105
#clean up any old patches (just in case)
106106
if [ -d .pc ]; then
@@ -155,6 +155,10 @@ fi
155155
#update changelog and control files
156156
debian/rules update-control-files
157157

158+
#mark the ubuntu target in the changelog
159+
[ -z "$UBUNTU_RELEASE" ] && UBUNTU_RELEASE=$(lsb_release -s -c)
160+
dch -b --force-distribution -D $UBUNTU_RELEASE ""
161+
158162
#build the packages
159163
debuild $DEBUILD_FLAGS
160164

0 commit comments

Comments
 (0)