3 # Written by Daniil Baturin, 2018
4 # This file is public domain
10 if [ "`id -u`" = 0 ]; then
11 echo "Running as root - installing dependencies"
12 apt-get
install fakeroot debhelper devscripts
13 mk-build-deps
--install debian
/control
17 git diff-index
--quiet HEAD ||
echo "Warning: git working directory is not clean!"
19 echo "Preparing the build"
22 echo "Building the Debian package"
23 if test $# -eq 0; then
24 dpkg-buildpackage
-b -uc -us
26 dpkg-buildpackage
"$@"