[deal.ii] 01/02: Bugfixes in override_dh_auto_install
Matthias Maier
tamiko-guest at moszumanska.debian.org
Sun Mar 2 10:25:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
tamiko-guest pushed a commit to branch master
in repository deal.ii.
commit b4b8499d776d7d1888e319f5b309e6b25627ac47
Author: Matthias Maier <tamiko at kyomu.43-1.org>
Date: Sun Mar 2 10:07:15 2014 +0100
Bugfixes in override_dh_auto_install
- Actually copy over online resources...
- Reorganize a bit
---
debian/rules | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/debian/rules b/debian/rules
index 0f01a9d..37d7eeb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,27 +27,30 @@ override_dh_auto_configure:
-DDEAL_II_PROJECT_CONFIG_RELDIR=share/cmake/deal.II \
-DDEAL_II_LIBRARY_RELDIR=lib/$(DEB_HOST_MULTIARCH)
+TMP_DOC := debian/tmp/usr/share/doc/libdeal.ii-doc
override_dh_auto_install:
dh_auto_install
+ # Copy over all external html resources:
+ cp -r doc/doxygen/deal.II/images $(TMP_DOC)/html/doxygen/deal.II/
# Replace links to external html resources by local links:
sed -i 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' \
- "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/html/doxygen/deal.II/step_*.html
+ $(TMP_DOC)/html/doxygen/deal.II/step_*.html
# Remove external links to the W3C validator icon:
- find "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/html \
+ find $(TMP_DOC)/html \
-type f -name '*.html' -exec sed -i 's#\(<img.*w3.org.*\)</a>#</a>#' {} \;
# Remove a java script embedding to google groups:
sed -i -e 's#.*getElementById.*forum_embed.*##g' \
-e 's#.*groups\.google\.com/forum/embed.*##g' \
- "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/html/mail.html
+ $(TMP_DOC)/html/mail.html
# Remove superfluous license file
- rm "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/LICENSE
+ rm $(TMP_DOC)/LICENSE
# Remove empty directories
- rm -r "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/examples/step-35/lib
- rmdir "$(CURDIR)"/debian/tmp/usr/share/doc/libdeal.ii-doc/html/glossary
+ rm -r $(TMP_DOC)/examples/step-35/lib
+ rmdir $(TMP_DOC)/html/glossary
override_dh_compress:
# Do not compress example steps:
- dh_compress -X*examples/step*
+ dh_compress -X*.cc
override_dh_strip:
dh_strip --dbg-package=libdeal.ii-dbg
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/deal.ii.git
More information about the debian-science-commits
mailing list