aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-28 13:44:37 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-28 13:44:37 -0400
commit9f02ee863454693dce8fcb209c28c1d2efa0ff77 (patch)
treea92e269a75abddee4d19aaaa6531021517dc21c5
parentaa4f9fe23208bd95d248f0a5d7a3ee5fdefedb45 (diff)
downloadikiwiki-9f02ee863454693dce8fcb209c28c1d2efa0ff77.tar
ikiwiki-9f02ee863454693dce8fcb209c28c1d2efa0ff77.tar.gz
Add PREFIX/bin to the hardcoded PATH within ikiwiki.
-rw-r--r--debian/changelog1
-rw-r--r--doc/bugs/__36__ENV__123__PATH__125___should_include_PREFIXbin.mdwn2
-rwxr-xr-xpm_filter3
3 files changed, 6 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index bcf3c9ac5..9b308e6b6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ikiwiki (2.45) UNRELEASED; urgency=low
* toc: Add the table of contents at sanitize time, rather than at format
time. This allows the toc to be displayed when previewing an edit. It also
avoids headers in the page template from showing up in the toc.
+ * Add PREFIX/bin to the hardcoded PATH within ikiwiki.
-- Joey Hess <joeyh@debian.org> Sat, 26 Apr 2008 15:09:36 -0400
diff --git a/doc/bugs/__36__ENV__123__PATH__125___should_include_PREFIXbin.mdwn b/doc/bugs/__36__ENV__123__PATH__125___should_include_PREFIXbin.mdwn
index 160af9983..179c862ae 100644
--- a/doc/bugs/__36__ENV__123__PATH__125___should_include_PREFIXbin.mdwn
+++ b/doc/bugs/__36__ENV__123__PATH__125___should_include_PREFIXbin.mdwn
@@ -13,3 +13,5 @@ Please use full-path to installed "ikiwiki-transition" in the system() function
Maybe pm_filter can handle this.
ikiwiki installer already knows about PREFIX.
+
+[[done]]
diff --git a/pm_filter b/pm_filter
index 287adc376..a66cf2154 100755
--- a/pm_filter
+++ b/pm_filter
@@ -23,3 +23,6 @@ elsif (/^use lib/) {
elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!/usr/bin/perl) -T$}) {
$_=qq{$1\n};
}
+if (/^\$ENV{PATH}="(.*)";/) {
+ $_="\$ENV{PATH}=\"$1:$prefix/bin\";\n";
+}