diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-19 04:50:38 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-19 04:50:38 +0000 |
commit | cfe7a0d1d7865d3f4cd32c54050d0d05f5bc7e49 (patch) | |
tree | 3d98390f881822a81f746e5eee7221d57ee46f0f /doc/patchqueue | |
parent | 8bfcca5b47c412b8f60c12d68302fb8b2f0a2354 (diff) | |
download | ikiwiki-cfe7a0d1d7865d3f4cd32c54050d0d05f5bc7e49.tar ikiwiki-cfe7a0d1d7865d3f4cd32c54050d0d05f5bc7e49.tar.gz |
web commit by http://id.inelegant.org/: Added pm_filter patch to optionally remove -T; removed earlier, rejected patch.
Diffstat (limited to 'doc/patchqueue')
-rw-r--r-- | doc/patchqueue/lib-fixup.mdwn | 52 |
1 files changed, 21 insertions, 31 deletions
diff --git a/doc/patchqueue/lib-fixup.mdwn b/doc/patchqueue/lib-fixup.mdwn index b2f6156cf..bdf8566d8 100644 --- a/doc/patchqueue/lib-fixup.mdwn +++ b/doc/patchqueue/lib-fixup.mdwn @@ -21,37 +21,27 @@ I imagine that there's a clean and elegant solution to this, but the hack I'm cu >>> about how to use ikiwiki with $BIG_HOSTING_PROVIDER, that can mention >>> the option. --[[Joey]] -<pre> -Index: Makefile.PL +>>>> I was going to write a guide for shared hosting setup anyway, so that sounds great. My `make`-fu is weak, so I don't know the Right Way to add an extra option, but here's a patch for removing the -T flag. -- Ben + +<pre> +Index: pm_filter =================================================================== ---- Makefile.PL (revision 2630) -+++ Makefile.PL (working copy) -@@ -24,6 +24,7 @@ - ) +--- pm_filter (revision 2644) ++++ pm_filter (working copy) +@@ -4,6 +4,7 @@ + $prefix=shift; + $ver=shift; + $libdir=shift; ++ $notaint=shift; + } - extra_build: -+ LANG=C ./lib-fixup.pl ikiwiki.in - LANG=C ./ikiwiki.in doc html --templatedir=templates \ - --underlaydir=basewiki \ - --wikiname="ikiwiki" --verbose --no-rcs \ -Index: lib-fixup.pl -=================================================================== ---- lib-fixup.pl (revision 0) -+++ lib-fixup.pl (revision 0) -@@ -0,0 +1,9 @@ -+#!/usr/bin/perl -i.bak -p -+use strict; -+use warnings; -+my @dirs = $ENV{PERL5LIB} =~ /:/ ? split /:/, $ENV{PERL5LIB} : $ENV{PERL5LIB}; -+if (@dirs) { -+ my $libs = join('', map { " use lib '$_';\n" } @dirs); -+ s/(use IkiWiki;)/$libs$1/; -+} -+ - -Property changes on: lib-fixup.pl -___________________________________________________________________ -Name: svn:executable - + * - + if (/INSTALLDIR_AUTOREPLACE/) { +@@ -19,4 +20,7 @@ + else { + $_="use lib '$libdir';\n"; + } ++} ++elsif ($. == 1 && $notaint && m{^(#!/usr/bin/perl) -T$}) { ++ $_=qq{$1\n}; + } </pre> |