[Pkg-javascript-commits] [node-sqlite3] 10/20: Update get-orig-source target, use uscan

Jérémy Lal kapouer at alioth.debian.org
Wed Sep 4 12:34:09 UTC 2013


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

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

commit c9347a5c7fbaa3e959b0df1398d11c4535e6d5b8
Author: Jérémy Lal <kapouer at melix.org>
Date:   Wed Sep 4 13:38:30 2013 +0200

    Update get-orig-source target, use uscan
---
 debian/rules |   27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/debian/rules b/debian/rules
index 615a34f..1c53fdb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,13 @@
 #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-sqlite3-$(UPVER)
+TARNAME := node-sqlite3_$(UPVER)+ds1.orig.tar
+
+
 %:
 	dh $@
 
@@ -29,9 +33,18 @@ override_dh_auto_clean:
 	rm -rf build/ lib/sqlite3_bindings.node .lock-wscript
 
 get-orig-source:
-	wget http://registry.npmjs.org/sqlite3/-/sqlite3-$(UPVER).tgz
-	tar xf sqlite3-$(UPVER).tgz
-	rm -rf package/deps/
-	tar cf node-sqlite3_$(UPVER)+ds1.orig.tar package/
-	gzip -9 node-sqlite3_$(UPVER)+ds1.orig.tar
-	rm -rf package/ sqlite3-$(UPVER).tgz
+	mkdir -p ../tarballs
+	uscan \
+		--verbose \
+		--download-version $(UPVER) \
+		--force-download \
+		--destdir ../tarballs \
+		--rename
+	tar xvf ../tarballs/node-sqlite3_$(UPVER).orig.tar.gz
+	@echo Repackaging
+	rm -rf $(TARDIR)/deps
+	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-sqlite3.git



More information about the Pkg-javascript-commits mailing list