[Pkg-javascript-commits] [node-topcube] 06/19: Update	get-orig-source target
    Jérémy Lal 
    kapouer at alioth.debian.org
       
    Sat Oct 26 13:54:18 UTC 2013
    
    
  
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-topcube.
commit 657a7cf1627d7df55dccbaa7712b16ac5a208db2
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sat Oct 26 12:06:15 2013 +0200
    Update get-orig-source target
---
 debian/rules |   29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/debian/rules b/debian/rules
index 46d43fe..2fbe7af 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,23 +4,28 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-ifndef UPVER
-UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1 | cut -d+ -f1)
-endif
+dfsgVersion := $(shell dpkg-parsechangelog -SVersion | cut -d- -f1)
+upstreamVersion := $(shell echo $(dfsgVersion) | cut -d+ -f1)
+name :=  $(shell dpkg-parsechangelog -SSource)
+upstreamName := topcube
+tarDir := $(upstreamName)-$(upstreamVersion)
+tarName := $(name)_$(dfsgVersion).orig.tar
 
 %:
 	dh $@
 
 get-orig-source:
+	mkdir -p ../tarballs
 	uscan \
 		--verbose \
-		--download-version $(UPVER) \
+		--download-version $(upstreamVersion) \
 		--force-download \
-		--rename \
-		--destdir .
-	tar xf node-topcube_$(UPVER).orig.tar.gz
-	@echo Removing sampleapp/, since it contains minified sources for which \
-		no uncompressed form is provided
-	rm -vrf creationix-topcube-*/sampleapp/
-	tar zcf node-topcube_$(UPVER)+ds1.orig.tar.gz creationix-topcube-*/
-	rm -rf creationix-topcube-*/ node-topcube_$(UPVER).orig.tar.gz
+		--destdir ../tarballs \
+		--rename
+	tar xvf ../tarballs/$(name)_$(upstreamVersion).orig.tar.gz
+	@echo Repackaging
+	rm -rf $(tarDir)/sampleapp
+	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/pkg-javascript/node-topcube.git
    
    
More information about the Pkg-javascript-commits
mailing list