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

gregoa pushed a commit to branch master
in repository libhook-lexwrap-perl.

commit 7edf5e069071341d1b0d1424d5cc25037bf848fc
Author: gregor herrmann <[email protected]>
Date:   Thu Oct 23 22:04:11 2014 +0200

    Replace adding_shebang.patch with a debian/rules override.
---
 debian/patches/adding_shebang.patch | 18 ------------------
 debian/patches/series               |  1 -
 debian/rules                        |  8 ++++++++
 3 files changed, 8 insertions(+), 19 deletions(-)

diff --git a/debian/patches/adding_shebang.patch 
b/debian/patches/adding_shebang.patch
deleted file mode 100644
index a143ee9..0000000
--- a/debian/patches/adding_shebang.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Description: add shebang to example scripts
-Author: Rene Mayorga <[email protected]>
-Last-Update: 2010-07-27
-
---- a/demo/demo_memo.pl
-+++ b/demo/demo_memo.pl
-@@ -1,3 +1,4 @@
-+#!/usr/bin/perl
- use Hook::LexWrap;
- 
- sub fibonacci {
---- a/demo/demo_temp.pl
-+++ b/demo/demo_temp.pl
-@@ -1,3 +1,4 @@
-+#!/usr/bin/perl
- use Hook::LexWrap;
- 
- my $temp;
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 3cd169d..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-adding_shebang.patch
diff --git a/debian/rules b/debian/rules
index 2d33f6a..91508c5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,12 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+EXAMPLES= $(TMP)/usr/share/doc/$(PACKAGE)/examples
+
 %:
        dh $@
+
+override_dh_install_examples:
+       dh_install_examples
+       sed -i -e '1i #!/usr/bin/perl\n' $(EXAMPLES)/*.pl

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to