chiark / gitweb /
Debian build: Make `./build debian' do a true Debian source build
[wiringPi.git] / build
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