[libclass-contract-perl] 08/10: Fix hashbang in example script.

gregor herrmann gregoa at debian.org
Sun Jan 12 15:44:36 UTC 2014


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

gregoa pushed a commit to branch master
in repository libclass-contract-perl.

commit 300742c30457590412db209ad91532125e4cded9
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Jan 12 16:42:52 2014 +0100

    Fix hashbang in example script.
---
 debian/rules | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..52994ed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,16 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
 	dh $@
+
+override_dh_auto_install:
+	dh_auto_install
+	# installed as an example
+	$(RM) -v $(TMP)/usr/share/perl5/Class/demo.pl
+
+override_dh_installexamples:
+	dh_installexamples
+	sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*

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



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