[redeclipse] 285/494: watch file and get-orig-source fix

Martin Werner arand-guest at moszumanska.debian.org
Sun Jun 21 20:52:43 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.

commit 78927e652b30437141e072c409bfe114d0e282a4
Author: Martin Erik Werner <martinerikwerner at gmail.com>
Date:   Fri Dec 9 14:04:50 2011 +0100

    watch file and get-orig-source fix
---
 rules | 20 +++++++++++---------
 watch |  5 ++---
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/rules b/rules
index 2096048..4d13a41 100755
--- a/rules
+++ b/rules
@@ -44,21 +44,23 @@ override_dh_install:
 			debian/tmp/usr/lib/games/redeclipse/redeclipse-server
 	dh_install --exclude="license.txt"
 
-URL=https://redeclipse.svn.sourceforge.net/svnroot/redeclipse
-REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]svn([0-9]+).*,\1,p')
-VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+overrride_dh_builddeb:
+	dh_builddeb -Zxz
+
+VER=$(shell dpkg-parsechangelog | sed -rne 's/^Version: ([^-]+).*/\1/p')
 DIR=redeclipse-$(VER).orig
-TARBALL=redeclipse_$(VER).orig.tar.gz
+TAR=redeclipse_$(VER).orig.tar.xz
 get-orig-source:
+	uscan --noconf --force-download --download-current-version --destdir=.
 	rm -rf $(DIR)
-	svn -q export -r $(REV) $(URL) $(DIR)
-	cd $(DIR)
+	tar -xf redeclipse_$(VER).orig.tar.bz2
+	mv redeclipse/ $(DIR)
 	rm -rf $(DIR)/src/include/
 	rm -rf $(DIR)/src/xcode/
 	rm -rf $(DIR)/src/lib/
 	rm -rf $(DIR)/src/site/
 	rm -rf $(DIR)/bin/
-	rm -f $(DIR)/data/fonts/akashi.ttf
-	GZIP=--best tar -cz --owner root --group root --mode a+rX \
-		-f $(TARBALL) $(DIR)
+	find $(DIR)/data/ -mindepth 1 -not -wholename "*examples*" -delete
+	XZ_OPT=-9 tar -cJ --owner root --group root --mode a+rX \
+		-f $(TAR) $(DIR)
 	rm -rf $(DIR)
diff --git a/watch b/watch
index a94534a..798bbc8 100644
--- a/watch
+++ b/watch
@@ -1,3 +1,2 @@
-# This is not used when tracking svn
-#version=3
-# http://sf.net/redeclipse/redeclipse_([\.0-9]+)_linux\.tar\.bz2
+version=3
+ http://sf.net/redeclipse/redeclipse_([0-9\.]+)_linux_bsd\.tar\.bz2

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



More information about the Pkg-games-commits mailing list