diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-20 22:12:43 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-20 22:12:43 +0000 |
commit | 5bc73d7facbea81ae533777affaffbe3d7476c0f (patch) | |
tree | 34c96a7f781930535890a52cb0d80ddeed395caf /pm_filter | |
parent | a95a7a428f439a08702f65da3b887382479ccaf0 (diff) | |
download | ikiwiki-5bc73d7facbea81ae533777affaffbe3d7476c0f.tar ikiwiki-5bc73d7facbea81ae533777affaffbe3d7476c0f.tar.gz |
* Rename ikiwiki.pl so MakeMaker doesn't see it, and install it.
* Add some code to the build system that tries to determine if the
lib installation directory is in @INC. If it's not, munge ikiwiki
to hardcode the path to the lib directory. This should allow installing
ikiwiki in nonstandard locations, including home directories, by just
setting PREFIX at build time.
* Fix nested examples directory in deb.
Diffstat (limited to 'pm_filter')
-rwxr-xr-x | pm_filter | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,6 +3,7 @@ BEGIN { $prefix=shift; $ver=shift; + $libdir=shift; } if (/INSTALLDIR_AUTOREPLACE/) { @@ -12,5 +13,10 @@ elsif (/VERSION_AUTOREPLACE/) { $_=qq{our \$version="$ver";}; } elsif (/^use lib/) { - $_=""; + if (grep { $_ eq $libdir } @INC) { + $_=""; + } + else { + $_="use lib '$libdir';\n"; + } } |