cd `dirname $0`

# Remove project Makefile to avoid conflict with Debian package Makefile.
rm Makefile

# Package source and extract next to Debian package.
tar --exclude='./deb' --exclude='.git' -zcvf piriscope_1.0.orig.tar.gz . 
tar -xvf piriscope_1.0.orig.tar.gz -C deb

# Build Debian package.
(cd deb && debuild -uc -us)

cd `dirname $0`
git archive --format tar.gz master > piriscope_1.0.orig.tar.gz
tar xvf piriscope_1.0.orig.tar.gz -C deb
(cd deb && debuild -uc -us)

--- 
+++ 
@@ -1,4 +1,11 @@
 cd `dirname $0`
-git archive --format tar.gz master > piriscope_1.0.orig.tar.gz
-tar xvf piriscope_1.0.orig.tar.gz -C deb
+
+# Remove project Makefile to avoid conflict with Debian package Makefile.
+rm Makefile
+
+# Package source and extract next to Debian package.
+tar --exclude='./deb' --exclude='.git' -zcvf piriscope_1.0.orig.tar.gz . 
+tar -xvf piriscope_1.0.orig.tar.gz -C deb
+
+# Build Debian package.
 (cd deb && debuild -uc -us)
Use current live source when building Debian package.
