`./build debian' installs the build dependencies (using sudo) if
necessary, and then runs dpkg-buildpackage to run the standardised
Debian package build system.
Retain the old style build, invocable with `./build debian-template'.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
exit
fi
+if [ x$1 = "xdebian" ]; then
+ if ! dpkg-checkbuilddeps; then
+ $sudo apt-get install build-essential debhelper fakeroot
+ dpkg-checkbuilddeps
+ fi
+ dpkg-buildpackage -b -us -uc -rfakeroot
+ exit
+fi
+
# Only if you know what you're doing!
-if [ x$1 = "xdebian" ]; then
+if [ x$1 = "xdebian-template" ]; then
+ # produces a single .deb in a nonstandard way from debian-template/
here=`pwd`
cd debian-template/wiringPi
rm -rf usr
+wiringpi (2.28~iwj1) unstable; urgency=medium
+
+ * Make `./build debian' do a true Debian source package based
+ build; provide the old style build as `./build debian-template'
+
+ --
+
wiringpi (2.26~iwj) rpi-unstable; urgency=low
* Initial version with real Debian source package build.