[SCM] osgearth branch, master, updated. b60da0a9e92e0a5bbe97cb0ae6b628861de33e43

Pirmin Kalberer pka at sourcepole.ch
Tue Aug 2 21:00:14 UTC 2011


The following commit has been merged in the master branch:
commit b60da0a9e92e0a5bbe97cb0ae6b628861de33e43
Author: Pirmin Kalberer <pka at sourcepole.ch>
Date:   Tue Aug 2 23:00:01 2011 +0200

    get-orig-source target

diff --git a/debian/rules b/debian/rules
index 3a72cf9..d7dae2c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,9 @@ export DH_OPTIONS
 
 include /usr/share/quilt/quilt.make
 
+PACKAGE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
+
 LDFLAGS += -Wl,--as-needed
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -106,3 +109,18 @@ binary-arch: build-arch install-arch
 
 binary: binary-arch binary-indep
 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure get-orig-source
+
+
+get-orig-source:
+	uscan --noconf --force-download --rename --download-current-version --destdir=.
+	rm -rf $(PACKAGE)-$(VERSION)
+	tar -xf $(PACKAGE)_$(VERSION).orig.tar.gz
+	rm $(PACKAGE)_$(VERSION).orig.tar.gz
+	mv gwaldron-osgearth* $(PACKAGE)-$(VERSION)
+	#Remove data files with unknown license
+	find $(PACKAGE)-$(VERSION)/data -not -name world.tif -type f | xargs rm
+	mv $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).orig
+	GZIP=--best tar -cz --owner root --group root --mode a+rX \
+	                -f $(PACKAGE)_$(VERSION)+dfsg.orig.tar.gz \
+	                $(PACKAGE)-$(VERSION).orig
+	rm -r $(PACKAGE)-$(VERSION).orig
diff --git a/debian/watch b/debian/watch
index 37288ef..4930e4d 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
 version=3
-http://githubredir.debian.net/github/gwaldron/osgearth (.*).tar.gz
+http://githubredir.debian.net/github/gwaldron/osgearth .*osgearth_(.*)_.*.tar.gz

-- 
osgEarth terrain rendering toolkit



More information about the Pkg-grass-devel mailing list