[libhttp-oai-perl] 01/06: debian/rules: rename bin/ to script/ temporarily

gregor herrmann gregoa at debian.org
Fri Jul 14 22:20:22 UTC 2017


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

gregoa pushed a commit to branch master
in repository libhttp-oai-perl.

commit 9a09fd924ee48e99702faad68abfdde793ee4066
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Jul 15 00:00:12 2017 +0200

    debian/rules: rename bin/ to script/ temporarily
    
    as Module::Build::Tiny looks only in script/ and has no way to be told
    explicitly which scripts to install.
    
    Additionally remove oai_static_gateway.pl which was not installed before.
---
 debian/rules | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/debian/rules b/debian/rules
index 598c963..07bfd71 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,8 +6,21 @@ TMP     = $(CURDIR)/debian/$(PACKAGE)
 %:
 	dh $@
 
+# Module::Build::Tiny expects scripts in script/ not bin/
+override_dh_clean:
+	dh_clean
+	[ ! -d $(CURDIR)/script -a -d $(CURDIR)/bin ] || mv -v $(CURDIR)/script $(CURDIR)/bin
+
+override_dh_auto_configure:
+	[ ! -d $(CURDIR)/bin -a -d $(CURDIR)/script ] || mv -v $(CURDIR)/bin $(CURDIR)/script
+	dh_auto_configure
+
 override_dh_auto_install:
 	dh_auto_install
+	# remove example script
+	$(RM) -v $(TMP)/usr/bin/oai_static_gateway.pl \
+		$(TMP)/usr/share/man/man1/oai_static_gateway.pl.1p
+	# rename scripts and manpages
 	mv $(TMP)/usr/bin/oai_browser.pl $(TMP)/usr/bin/oai_browser
 	mv $(TMP)/usr/bin/oai_pmh.pl $(TMP)/usr/bin/oai_pmh
 	mv $(TMP)/usr/share/man/man1/oai_browser.pl.1p \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libhttp-oai-perl.git



More information about the Pkg-perl-cvs-commits mailing list