diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-10-02 22:46:38 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-10-02 22:46:38 +0000 |
commit | fb3a160f2dccd4aba867124342c9261df76b326c (patch) | |
tree | 8945a960bc200a5e4b868706cbadd84685184b24 | |
parent | ae4d15473ca2d6f07a87abcc31858dfb14011ee4 (diff) | |
download | ikiwiki-fb3a160f2dccd4aba867124342c9261df76b326c.tar ikiwiki-fb3a160f2dccd4aba867124342c9261df76b326c.tar.gz |
web commit by RecaiOktas: Replace partial patch with an url.
-rw-r--r-- | doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn b/doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn index 2c2660664..0c80960dd 100644 --- a/doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn +++ b/doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn @@ -3,8 +3,7 @@ If you're using ikiwiki without installing it, the svn post-commit wrapper will I'm not sure how to fix this in a secure way. For now I'm just changing use lib '.' in ikiwiki.pl to point to the hard-coded directory where ikiwiki was unpacked. > This workaround doesn't work here. "`./ikiwiki.pl --setup ikiwiki.setup`" is ok, but the -> wrappers fail in action. The below patch seems fine (only the relevant part). --[[Roktas]] - - -use lib '.'; # For use without installation, removed by Makefile. - +use FindBin qw($Bin); # WILL_BE_REMOVED by Makefile. - +use lib ($Bin=~/(.+)/ ? "$1" : '.'); # For use without installation, WILL_BE_REMOVED by Makefile. +> wrappers fail in action. Using "`FindBin`" seems a solution. Here is a (kinda ugly) +> [patch](http://git.kirkambar.net/?p=ikiwiki.git;a=commitdiff;h=44511c00b98b3efedd4d31f15ea928fcf221401e) +> which also allows you to use `basewiki` + `templates` in the source directory. The patched +> version works fine in my [homepage](http://kirkambar.net). --[[Roktas]]
\ No newline at end of file |