[libgraphviz-perl] 02/11: Replace patch to fix hashbang with override in debian/rules.

gregor herrmann gregoa at debian.org
Sun May 31 14:51:41 UTC 2015


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

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

commit e64276f8d061f1e8cd4a1e7d73c659a15e32b8de
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun May 31 16:38:53 2015 +0200

    Replace patch to fix hashbang with override in debian/rules.
    
    Also fix another wrong hashbang.
---
 debian/patches/primes_path.diff | 10 ----------
 debian/patches/series           |  1 -
 debian/rules                    |  8 ++++++++
 3 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/debian/patches/primes_path.diff b/debian/patches/primes_path.diff
deleted file mode 100644
index 09a3122..0000000
--- a/debian/patches/primes_path.diff
+++ /dev/null
@@ -1,10 +0,0 @@
-diff --git a/examples/primes_aux.pl b/examples/primes_aux.pl
-index 2540bef..e7222de 100755
---- a/examples/primes_aux.pl
-+++ b/examples/primes_aux.pl
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl -w
-+#!/usr/bin/perl -w
- # badly written program in the hopes it would sound nice
- # - Greg McCarroll
- #
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index b8a4c47..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-primes_path.diff
diff --git a/debian/rules b/debian/rules
index 2d33f6a..92bb65f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,12 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
 	dh $@
+
+override_dh_installexamples:
+	dh_installexamples
+	sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
+	sed -i '1s|^#!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/libgraphviz-perl.git



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