summaryrefslogtreecommitdiffstats
path: root/debian/bin/build.sh
blob: 0bdcb863d2b8023c5aa74f2b2cfa6ea3ebaabb3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

RELEASE="$(lsb_release -c -s)"
VERSION="$(cat /etc/debian_version)"
VERSION="${VERSION%%.*}"

if ! [[ "${VERSION}" =~ .*/sid ]]; then
	git checkout debian/changelog
	dch --local ~deb${VERSION}+ --distribution ${RELEASE} "Rebuild for ${RELEASE}" || exit
fi

debian/bin/gencontrol.sh "${@}"

dpkg-buildpackage -uc -b -nc