Common dir for all files in orig.tar.gz
authorPaul Crowley <paul@lshift.net>
Thu, 08 Sep 2011 09:14:46 +0100
changeset 334 b7e56688dd14
parent 333 2e97efae4373
child 335 0d15506351db
Common dir for all files in orig.tar.gz
dev/debian-build/dbuild
--- a/dev/debian-build/dbuild	Thu Sep 08 09:14:23 2011 +0100
+++ b/dev/debian-build/dbuild	Thu Sep 08 09:14:46 2011 +0100
@@ -17,10 +17,12 @@
 
 rm -rf ${BUILDDIR}
 mkdir -p ${BUILDDIR}
-hg st -mac0n -X '.hg*' -X 'dev/**' -X 'debian/**' | \
-    cpio -o -0 -H ustar | gzip --best > \
-   ${BUILDDIR}/${PACKAGE}_${UPSTREAM_VERSION}.orig.tar.gz
-hg st -mac0n -X '.hg*' -X 'dev/**' | cpio -p -0 -d \
+hg st -mac0n -X '.hg*' -X 'dev/**' -X 'debian/**' | cpio -p -0 -d \
+   ${BUILDDIR}/${PACKAGE}-${UPSTREAM_VERSION}
+(cd ${BUILDDIR} ; tar cvzf \
+   ${PACKAGE}_${UPSTREAM_VERSION}.orig.tar.gz \
+   ${PACKAGE}-${UPSTREAM_VERSION} )
+hg st -mac0n -I 'debian/**' | cpio -p -0 -d \
    ${BUILDDIR}/${PACKAGE}-${UPSTREAM_VERSION}
 
 cd ${BUILDDIR}/${PACKAGE}-${UPSTREAM_VERSION}