[librrd-simple-perl] 03/10: Replace patch example-interpreter with an override
gregor herrmann
gregoa at debian.org
Mon Jun 29 19:41:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository librrd-simple-perl.
commit 5f4ecbbc411739493545d13a91a5006f4a9f1d5c
Author: gregor herrmann <gregoa at debian.org>
Date: Mon Jun 29 21:30:47 2015 +0200
Replace patch example-interpreter with an override
in debian/rules.
---
debian/patches/example-interpreter | 12 ------------
debian/patches/series | 1 -
debian/rules | 7 +++++++
3 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/debian/patches/example-interpreter b/debian/patches/example-interpreter
deleted file mode 100644
index 32d779c..0000000
--- a/debian/patches/example-interpreter
+++ /dev/null
@@ -1,12 +0,0 @@
-Subject: Use /usr/bin/perl as Perl path in all examples
-Author: Russ Allbery <rra at debian.org>
-Forwarded: not-needed
-
---- a/examples/foo.pl
-+++ b/examples/foo.pl
-@@ -1,4 +1,4 @@
--#!/bin/env perl
-+#!/usr/bin/perl
-
- use strict;
- use RRD::Simple 1.44;
diff --git a/debian/patches/series b/debian/patches/series
index 7f5aecb..56b3da4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,3 @@
rrd-test-nan
rrd-test-cdp-prep
doc-spelling
-example-interpreter
diff --git a/debian/rules b/debian/rules
index 0144daa..a998f28 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,14 @@
#!/usr/bin/make -f
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
# Disable the prompt to phone home to report package build.
export AUTOMATED_TESTING := 1
%:
dh $@
+
+override_dh_installexamples:
+ dh_installexamples
+ sed -i '1s|^#!/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/foo.pl
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/librrd-simple-perl.git
More information about the Pkg-perl-cvs-commits
mailing list