WIP: mod: debian/rules (sandbox/pcoval/on/master/debian)
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Tue, 18 Apr 2017 12:32:00 +0000 (14:32 +0200)
committerPhilippe Coval <philippe.coval@osg.samsung.com>
Tue, 18 Apr 2017 12:46:48 +0000 (14:46 +0200)
Change-Id: Ib3b3527e825d04e6b66d74d72011fafdabe9183e
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
debian/rules

index 324ec0f..f420e1a 100755 (executable)
@@ -5,6 +5,20 @@
 export DH_VERBOSE=1
 V=1
 
+default: rule/debuild
+
 %:
-       dh $@ 
+       dh $@
+
+
+version?=$(shell [ -r debian/changelog ] && dpkg-parsechangelog | grep "Version:" | sed -e "s/Version: \(.*\)-.*/\1/g" )
+tarball?=${CURDIR}/../iotivity_${version}.orig.tar.xz
+
+rule/debuild: ${tarball}
+       debuild
 
+${tarball}: ${CURDIR}
+       cd .. && tar cvfJ \
+ $@ \
+ --exclude 'debian' --exclude-vcs \
+ ${<F}/