[libevent-perl] 04/05: Replace fix-example-wrong-path-for-interpreter.patch by an override
gregor herrmann
gregoa at debian.org
Sat Jul 12 12:33:50 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libevent-perl.
commit ac3ff3fcd566a6eaafe34cd52f15fe512cba9174
Author: gregor herrmann <gregoa at debian.org>
Date: Sat Jul 12 14:30:30 2014 +0200
Replace fix-example-wrong-path-for-interpreter.patch by an override
in debian/rules.
---
.../fix-example-wrong-path-for-interpreter.patch | 52 ----------------------
debian/patches/series | 1 -
debian/rules | 7 +++
3 files changed, 7 insertions(+), 53 deletions(-)
diff --git a/debian/patches/fix-example-wrong-path-for-interpreter.patch b/debian/patches/fix-example-wrong-path-for-interpreter.patch
deleted file mode 100644
index ab04418..0000000
--- a/debian/patches/fix-example-wrong-path-for-interpreter.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-Description: Adjust the shebang line to point to /usr/bin/perl instead of
-./perl or env perl, in the examples. This fixes various
-example-wrong-path-for-interpreter and example-interpreter-not-absolute
-lintian warnings
---- a/demo/echo.t
-+++ b/demo/echo.t
-@@ -1,4 +1,4 @@
--#!./perl -w
-+#!/usr/bin/perl -w
-
- $| = 1;
- use Event qw(time);
---- a/demo/group.t
-+++ b/demo/group.t
-@@ -1,4 +1,4 @@
--#!./perl -w
-+#!/usr/bin/perl -w
-
- use strict;
- use Test; plan test => 6;
---- a/demo/perlqt.t
-+++ b/demo/perlqt.t
-@@ -1,4 +1,4 @@
--#!./perl -w
-+#!/usr/bin/perl -w
-
- use Qt 2.0;
- use Event;
---- a/demo/rand_interval.t
-+++ b/demo/rand_interval.t
-@@ -1,4 +1,4 @@
--#!./perl -w
-+#!/usr/bin/perl -w
- # contributed by jsalmon at gw.thesalmons.org
-
- use Event qw(loop);
---- a/demo/readline.t
-+++ b/demo/readline.t
-@@ -1,4 +1,4 @@
--#!/usr/bin/env perl -w
-+#!/usr/bin/perl -w
-
- #
- # Test script to combine Term::Readline::Gnu and Event.
---- a/demo/repeat.t
-+++ b/demo/repeat.t
-@@ -1,4 +1,4 @@
--#!./perl -w
-+#!/usr/bin/perl -w
-
- use strict;
- use Event;
diff --git a/debian/patches/series b/debian/patches/series
index c8ec89c..dce0fdb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1 @@
pod_encoding.patch
-fix-example-wrong-path-for-interpreter.patch
diff --git a/debian/rules b/debian/rules
index 2d33f6a..52ab092 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,11 @@
#!/usr/bin/make -f
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
%:
dh $@
+
+override_dh_installexamples:
+ dh_installexamples
+ sed -i -e '1s|^#!./perl|#!/usr/bin/perl|' -e '1s|^#!/usr/bin/env 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/libevent-perl.git
More information about the Pkg-perl-cvs-commits
mailing list