[sardana] 01/05: remove duplication in the documentation package

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Sun Jan 19 20:32:45 UTC 2014


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

picca pushed a commit to branch master
in repository sardana.

commit be2e84f74095135d780b37dece8a083dd9990b98
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Mon Sep 9 12:01:21 2013 +0200

    remove duplication in the documentation package
---
 debian/changelog | 6 ++++++
 debian/control   | 4 +++-
 debian/rules     | 6 +++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 19e7af9..0bb4c4a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+sardana (1.2.0-2) UNRELEASED; urgency=low
+
+  * remove duplication in the documentation package
+
+ -- Picca Frédéric-Emmanuel <picca at debian.org>  Mon, 09 Sep 2013 11:26:31 +0200
+
 sardana (1.2.0-1) unstable; urgency=low
 
   * Initial release (Closes: #717871)
diff --git a/debian/control b/debian/control
index 02eefcf..beeabef 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,9 @@ Build-Depends: debhelper (>= 9),
                python-lxml,
                python-pytango (>= 8.0.3-2),
                python-sphinx,
-               python-taurus (>= 3.1.0)
+               python-taurus (>= 3.1.0),
+               rdfind,
+               symlinks
 Standards-Version: 3.9.4
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/sardana.git
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/sardana.git
diff --git a/debian/rules b/debian/rules
index e38b160..c3a1fb9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,8 +9,12 @@ override_dh_clean:
 
 override_dh_auto_install:
 	dh_auto_install -- --install-html=$(CURDIR)/debian/python-sardana-doc/usr/share/doc/python-sardana-doc/html
-	# on squeeze python-sphinx is to old so create a fake documentation for now
+	# on squeeze python-sphinx is too old so create a fake documentation for now
 	if [ ! -d build/sphinx ]; then mkdir -p build/sphinx/html; fi
+	# Replace duplicate files with symlinks
+	rdfind -outputname /dev/null -makesymlinks true debian/python-sardana-doc/
+	# Fix those symlinks to make them relative
+	symlinks -r -s -c debian/python-sardana-doc/
 
 %:
 	dh $@ --with python2 $(WITH_SPHINXDOC)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sardana.git



More information about the debian-science-commits mailing list