[redeclipse-data] 05/28: Update watch file and get-orig-source for GitHub

Martin Werner arand-guest at moszumanska.debian.org
Sat Apr 4 14:36:34 UTC 2015


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

arand-guest pushed a commit to branch debdir
in repository redeclipse-data.

commit 202f3fd2c8285056ee7b418cff769ec59a91acd1
Author: Martin Erik Werner <martinerikwerner at gmail.com>
Date:   Tue Mar 31 17:15:07 2015 +0200

    Update watch file and get-orig-source for GitHub
---
 rules | 18 ++++++------------
 watch |  3 ++-
 2 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/rules b/rules
index 2b7f736..6a19a5c 100755
--- a/rules
+++ b/rules
@@ -13,19 +13,13 @@ override_dh_builddeb:
 
 VER=$(shell dpkg-parsechangelog | sed -rne 's/^Version: ([^-]+).*/\1/p')
 DIR=redeclipse-data-$(VER).orig
-UTAR=redeclipse-data_$(VER).orig.tar.bz2
-TAR=redeclipse-data_$(VER).orig.tar.xz
 get-orig-source:
-	uscan --noconf --force-download --download-current-version --destdir=.
+	uscan --noconf --rename --force-download --download-current-version \
+		--destdir=.
 	rm -rf $(DIR)
-	tar -xf $(UTAR)
-	rm -f $(UTAR)
-	mv redeclipse-$(VER)/ $(DIR)
-	rm -rf $(DIR)/bin/
-	cd $(DIR) && rm -f redeclipse.sh redeclipse_server.sh
-	rm -f $(DIR)/data/fonts/play*
-	rm -f $(DIR)/data/fonts/*.ttf
-	rm -rf $(DIR)/src/
+	tar -xf redeclipse-data_$(VER).orig.tar.gz
+	rm -f redeclipse-data_$(VER).orig.tar.gz
+	mv data-$(VER)/ $(DIR)
 	XZ_OPT="-6" tar --create --xz --owner root --group root --mode a+rX \
-		-f $(TAR) $(DIR)
+		-f redeclipse-data_$(VER).orig.tar.xz $(DIR)
 	rm -rf $(DIR)
diff --git a/watch b/watch
index a2e8e63..5b11cf9 100644
--- a/watch
+++ b/watch
@@ -1,2 +1,3 @@
 version=3
-http://sf.net/redeclipse/redeclipse_([0-9\.]+)_(?:nix|linux)(?:_bsd)\.tar\.bz2
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/redeclipse-data-$1\.tar\.gz/ \
+  https://github.com/red-eclipse/data/tags .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/redeclipse-data.git



More information about the Pkg-games-commits mailing list