[libbusiness-paypal-api-perl] 03/04: debian/rules: fix hashbang in example scripts.

gregor herrmann gregoa at debian.org
Sun Nov 8 16:47:14 UTC 2015


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

gregoa pushed a commit to branch master
in repository libbusiness-paypal-api-perl.

commit 73052138c059998588d76b2b436c643b3146f820
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Nov 8 17:45:43 2015 +0100

    debian/rules: fix hashbang in example scripts.
---
 debian/rules | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..baa8284 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,13 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
 	dh $@
+
+override_dh_installexamples:
+	dh_installexamples
+	sed -i '1s|^#!/usr/bin/env perl;\?|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/get-transaction-details.pl \
+		$(TMP)/usr/share/doc/$(PACKAGE)/examples/myapp.pl
+	sed -i '1i #!/usr/bin/perl\n' $(TMP)/usr/share/doc/$(PACKAGE)/examples/search-transactions.pl

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libbusiness-paypal-api-perl.git



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