[cpp-log4shib] 11/13: Remove the unneded files instead of ignoring them
Scott Cantor
cantor.2 at osu.edu
Tue Oct 19 16:14:32 UTC 2021
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to annotated tag debian/1.0.9-3
in repository cpp-log4shib.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-log4shib.git;a=commit;h=04c8101d90b5666247c31ec3952854d20207abae
commit 04c8101d90b5666247c31ec3952854d20207abae
Author: Ferenc Wágner <wferi at niif.hu>
AuthorDate: Thu Mar 31 14:50:38 2016 +0200
Remove the unneded files instead of ignoring them
This requires merging the dh_install overrides to enable mixed builds,
because the documentation gets built and installed in arch builds as well.
Instead of repeating the cleansing commands, make the removals tolerate
missing files and directories.
---
debian/rules | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/debian/rules b/debian/rules
index e0fbc66..add0459 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,16 +26,15 @@ override_dh_auto_test-indep:
override_dh_auto_install-indep:
$(MAKE) -C doc DESTDIR=$(CURDIR)/debian/tmp install
-override_dh_install-arch:
+APIDOCS=debian/tmp/usr/share/doc/log4shib-*/api/html
+override_dh_install:
pod2man --release='$(word 3,$(shell ./config.status --version))' \
--section=1 --center=log4shib \
debian/log4shib-config.pod debian/log4shib-config.1
- rm debian/tmp/usr/lib/*/liblog4shib.la
- dh_install -Xman3 --fail-missing
-
-override_dh_install-indep:
- find debian/tmp/usr/share/doc/log4shib-*/api/html -name "*.md5" -delete
- dh_install -Xman3 --fail-missing
+ rm -f debian/tmp/usr/lib/*/liblog4shib.la
+ rm -rf debian/tmp/usr/share/man/man3
+ if [ -d $(APIDOCS) ]; then find $(APIDOCS) -name "*.md5" -delete; fi
+ dh_install --fail-missing
override_dh_autoreconf:
dh_autoreconf --as-needed
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list