r46707 - /website/debhelper.pod

carnil-guest at users.alioth.debian.org carnil-guest at users.alioth.debian.org
Tue Nov 3 18:54:42 UTC 2009


Author: carnil-guest
Date: Tue Nov  3 18:54:36 2009
New Revision: 46707

URL: http://svn.debian.org/wsvn/?sc=1&rev=46707
Log:
Add another example how to substiute wrong shebang lines with override target for dh_installexamples

Modified:
    website/debhelper.pod

Modified: website/debhelper.pod
URL: http://svn.debian.org/wsvn/website/debhelper.pod?rev=46707&op=diff
==============================================================================
--- website/debhelper.pod (original)
+++ website/debhelper.pod Tue Nov  3 18:54:36 2009
@@ -188,6 +188,19 @@
 <pre>override_dh_installexamples:
 &#09;dh_installexamples
 &#09;sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/libdate-calc-perl/examples/*
+</pre>
+
+=end html
+
+Another elegant method for achieving substitution of the shebang from
+B</usr/local/bin/perl> to B</usr/bin/perl> would be:
+
+=begin html
+
+<pre>override_dh_installexamples:
+&#09;dh_installexamples
+&#09;find $(TMP)/usr/share/doc/$(PACKAGE)/examples -type f -print0 | \
+&#09;&#09;xargs -r0 sed -i -e '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|'
 </pre>
 
 =end html




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