[SCM] polsarpro-doc branch, master, updated. 8ecb7bdfc117515301f196aa8d5503f494635cb2

Antonio Valentino antonio.valentino at tiscali.it
Fri Aug 19 17:30:47 UTC 2011


The following commit has been merged in the master branch:
commit 8ecb7bdfc117515301f196aa8d5503f494635cb2
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Fri Aug 19 18:48:18 2011 +0200

    Switch to dh8

diff --git a/debian/changelog b/debian/changelog
index b1724ad..93f62fd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,4 +2,4 @@ polsarpro-doc (4.2.0-1) unstable; urgency=low
 
   * Initial release (Closes: #606876)
 
- -- Antonio Valentino <antonio.valentino at tiscali.it>  Sun, 13 Feb 2011 19:37:02 +0100
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Fri, 19 Aug 2011 18:47:52 +0200
diff --git a/debian/compat b/debian/compat
index 7f8f011..45a4fb7 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+8
diff --git a/debian/control b/debian/control
index 47ce02f..cb928b6 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: non-free/doc
 Priority: optional
 Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
 Uploaders: Antonio Valentino <antonio.valentino at tiscali.it>
-Build-Depends: cdbs, debhelper (>= 7.0.50~), dos2unix
+Build-Depends: debhelper (>= 8.0.0), dos2unix
 Standards-Version: 3.9.2
 Homepage: http://earth.esa.int/polsarpro
 Vcs-Git: git://git.debian.org/git/pkg-grass/polsarpro-doc.git
diff --git a/debian/rules b/debian/rules
index 72c9add..45c73a2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,37 +1,43 @@
 #!/usr/bin/make -f
+# -*- makefile -*-
 
-include /usr/share/cdbs/1/rules/debhelper.mk
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
+%:
+	dh $@
 
-DEB_COMPRESS_EXCLUDE = .pdf
-
-
-install/polsarpro-doc::
-	install -D --mode=0644 $(CURDIR)/README_PolSARpro*_Install_Linux.pdf $(DEB_DESTDIR)/usr/share/doc/polsarpro-doc/README.pdf
-	cp -R --no-preserve=mode $(CURDIR)/Help     $(DEB_DESTDIR)/usr/share/doc/polsarpro-doc
-	cp -R --no-preserve=mode $(CURDIR)/TechDoc  $(DEB_DESTDIR)/usr/share/doc/polsarpro-doc
-	cp -R --no-preserve=mode $(CURDIR)/Tutorial $(DEB_DESTDIR)/usr/share/doc/polsarpro-doc
+override_dh_auto_install:
+	dh_auto_install
+	install -D --mode=0644 README_PolSARpro*_Install_Linux.pdf debian/polsarpro-doc/usr/share/doc/polsarpro-doc/README.pdf
+	cp -R --no-preserve=mode Help     debian/polsarpro-doc/usr/share/doc/polsarpro-doc
+	cp -R --no-preserve=mode TechDoc  debian/polsarpro-doc/usr/share/doc/polsarpro-doc
+	cp -R --no-preserve=mode Tutorial debian/polsarpro-doc/usr/share/doc/polsarpro-doc
 
+# don't compress sphinx doc files (fixed in debhelper 8.1)
+override_dh_compress:
+	dh_compress -X.pdf
 
 # Orig source
-ORIGDIR=$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
-
-.PHONY: get-orig-source
+UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+ORIGDIR=polsarpro-doc-$(UPSTREAM_VERSION).orig
 
 get-orig-source:
-	uscan --force-download --no-symlink --download-current-version --destdir .. --verbose
-	rm -rf ../$(ORIGDIR)
-	mkdir ../$(ORIGDIR)
-	unzip ../PolSARpro_v$(DEB_UPSTREAM_VERSION)_Install_Linux.zip -d ../$(ORIGDIR)
-	mv ../$(ORIGDIR)/PolSARpro_v$(DEB_UPSTREAM_VERSION)_Install_Linux/PolSARpro_v$(DEB_UPSTREAM_VERSION)/* ../$(ORIGDIR)
-	rm -rf ../$(ORIGDIR)/PolSARpro_v$(DEB_UPSTREAM_VERSION)_Install_Linux
-	rm -rf ../$(ORIGDIR)/ColorMap
-	rm -rf ../$(ORIGDIR)/Config
-	rm -rf ../$(ORIGDIR)/GUI
-	rm -rf ../$(ORIGDIR)/Soft
-	rm -rf ../$(ORIGDIR)/Tmp
-	rm -rf ../$(ORIGDIR)/Log
-	rm ../$(ORIGDIR)/PolSARpro_v*.tcl
-	rm ../$(ORIGDIR)/PolSARpro*.sh
-	tar -C .. -cf - $(ORIGDIR) | gzip -9f - > $(CURDIR)/../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
-	rm -rf ../$(ORIGDIR)
+	uscan --no-symlink --download-current-version --destdir . --verbose
+	rm -rf $(ORIGDIR)
+	mkdir $(ORIGDIR)
+	unzip PolSARpro_v$(UPSTREAM_VERSION)_Install_Linux.zip -d $(ORIGDIR)
+	mv $(ORIGDIR)/PolSARpro_v$(UPSTREAM_VERSION)_Install_Linux/PolSARpro_v$(UPSTREAM_VERSION)/* $(ORIGDIR)
+	rm -rf $(ORIGDIR)/PolSARpro_v$(UPSTREAM_VERSION)_Install_Linux
+	rm -rf $(ORIGDIR)/ColorMap
+	rm -rf $(ORIGDIR)/Config
+	rm -rf $(ORIGDIR)/GUI
+	rm -rf $(ORIGDIR)/Soft
+	rm -rf $(ORIGDIR)/Tmp
+	rm -rf $(ORIGDIR)/Log
+	rm $(ORIGDIR)/PolSARpro_v*.tcl
+	rm $(ORIGDIR)/PolSARpro*.sh
+	tar -cf - $(ORIGDIR) | gzip -9f - > polsarpro-doc_$(UPSTREAM_VERSION).orig.tar.gz
+	rm -rf $(ORIGDIR)
+
+.PHONY: get-orig-source override_dh_auto_install override_dh_compress

-- 
Polarimetric SAR Data Processing and Educational Tool documentation



More information about the Pkg-grass-devel mailing list