[Pkg-javascript-commits] [node-zipfile] 03/20: Update repackaging, put tarballs in separate dir.

Jérémy Lal kapouer at alioth.debian.org
Fri Aug 30 13:36:31 UTC 2013


This is an automated email from the git hooks/post-receive script.

kapouer pushed a commit to branch master
in repository node-zipfile.

commit 15d55534d9e7e19514b23413ed8ff86d1bd42f96
Author: Jérémy Lal <kapouer at melix.org>
Date:   Fri Aug 30 15:15:01 2013 +0200

    Update repackaging, put tarballs in separate dir.
---
 debian/rules |   27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/debian/rules b/debian/rules
index 8f20a45..3d0b505 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,12 @@
 #export DH_VERBOSE=1
 
 ifndef UPVER
-UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1 | cut -d+ -f1)
+UPVER := $(shell dpkg-parsechangelog -SVersion | cut -d- -f1 | cut -d+ -f1)
 endif
 
+TARDIR := node-zipfile-$(UPVER)
+TARNAME := node-zipfile_$(UPVER)+ds1.orig.tar
+
 %:
 	dh $@
 
@@ -42,16 +45,22 @@ override_dh_strip:
 		$(CURDIR)/debian/node-zipfile/usr/lib/nodejs/zipfile/_zipfile.node
 
 get-orig-source:
+	mkdir -p ../tarballs
 	uscan \
 		--verbose \
 		--download-version $(UPVER) \
 		--force-download \
-		--destdir . \
+		--destdir ../tarballs \
 		--rename
-	tar xvf node-zipfile_$(UPVER).orig.tar.gz
-	# removing embedded libzip
-	rm -rf package/deps
-	rm -rf package/.gitignore
-	tar cf node-zipfile_$(UPVER)+ds1.orig.tar package/
-	gzip -9 node-zipfile_$(UPVER)+ds1.orig.tar
-	rm -rf package/ node-zipfile_$(UPVER).orig.tar.gz
+	tar xvf ../tarballs/node-zipfile_0.4.0.orig.tar.gz
+	@echo Repackaging
+	rm -rf $(TARDIR)/deps/libzip*
+	rm -rf $(TARDIR)/deps/zlib
+	rm -rf $(TARDIR)/deps/*-include
+	rm -rf $(TARDIR)/deps/*.py
+	rm $(TARDIR)/test/data/world_merc.zip
+	tar cf $(TARNAME) $(TARDIR)/
+	rm -rf $(TARDIR)/
+	gzip -9 $(TARNAME)
+	mv $(TARNAME).gz ../tarballs/
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-zipfile.git



More information about the Pkg-javascript-commits mailing list