[libparse-http-useragent-perl] 03/06: Replace fix_shebang.patch with an override in debian/rules.

gregor herrmann gregoa at debian.org
Thu Jan 2 20:48:50 UTC 2014


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

gregoa pushed a commit to branch master
in repository libparse-http-useragent-perl.

commit 2159f7b3fcf6effe8ce8070fe1da93b925b84425
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Jan 2 21:46:22 2014 +0100

    Replace fix_shebang.patch with an override in debian/rules.
---
 debian/patches/fix_shebang.patch | 30 ------------------------------
 debian/patches/series            |  1 -
 debian/rules                     |  7 +++++++
 3 files changed, 7 insertions(+), 31 deletions(-)

diff --git a/debian/patches/fix_shebang.patch b/debian/patches/fix_shebang.patch
deleted file mode 100644
index 1d6298f..0000000
--- a/debian/patches/fix_shebang.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Description: Parser::HTTP::UserAgent provides several example scripts
- that have #!/usr/bin/env as shebang. This patch changes the shebangs to
- #!/usr/bin/perl in order to comply with Debian Policy.
-Forwarded: not-needed
-Author: Ernesto Hernández-Novich <emhn at usb.ve>
-
---- a/eg/accuracy.pl
-+++ b/eg/accuracy.pl
-@@ -1,4 +1,4 @@
--#!/usr/bin/env perl
-+#!/usr/bin/perl
- # (c) Burak Gursoy. Distributed under the Perl License.
- use strict;
- use warnings;
---- a/eg/bench.pl
-+++ b/eg/bench.pl
-@@ -1,4 +1,4 @@
--#!/usr/bin/env perl
-+#!/usr/bin/perl
- # (c) 2009 Burak Gursoy. Distributed under the Perl License.
- use strict;
- use warnings;
---- a/eg/dump.pl
-+++ b/eg/dump.pl
-@@ -1,4 +1,4 @@
--#!/usr/bin/env perl -w
-+#!/usr/bin/perl -w
- # (c) 2009 Burak Gursoy. Distributed under the Perl License.
- # Enables internal pre-parsed structure dumper and then dumps
- #    the parsed structure.
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index d192e76..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-fix_shebang.patch
diff --git a/debian/rules b/debian/rules
index 28c0a89..c79d69b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,14 @@
 #!/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/*
+
 override_dh_builddeb:
 	dh_builddeb -- -Zxz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libparse-http-useragent-perl.git



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