chiark / gitweb /
Debian build: Make `./build debian' do a true Debian source build
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Sep 2015 23:59:32 +0000 (23:59 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Oct 2015 13:20:48 +0000 (14:20 +0100)
`./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>
build
debian/changelog

diff --git a/build b/build
index c2a589c855f8405d6f9758638c737a874120958b..57f150e69461eb0e2b3ddf576f7c6d70b1058400 100755 (executable)
--- a/build
+++ b/build
@@ -75,9 +75,19 @@ if [ x$1 = "xuninstall" ]; then
   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
index 7f04ad5422782488d0dceeda71179b640e82cdd2..19f972d1b922bca96617969ad85e9668acfb0c66 100644 (file)
@@ -1,3 +1,10 @@
+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.