X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=build;fp=build;h=57f150e69461eb0e2b3ddf576f7c6d70b1058400;hb=6cd916f577940810e7dc1cfa7e52425562bcd2e5;hp=c2a589c855f8405d6f9758638c737a874120958b;hpb=d79506694d7ba1c3da865d095238289d6175057d;p=wiringPi.git diff --git a/build b/build index c2a589c..57f150e 100755 --- 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