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,11 +1,4 @@
 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.
+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)
Use current live source when building Debian package.
