aboutsummaryrefslogtreecommitdiff
path: root/pm_filter
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-25 02:12:43 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-25 02:12:43 +0000
commitf4d99ac1ca03121255e545df89e7d841a02cc0bf (patch)
treebdabb182ecd4fb16e50d1a987de70440ec466349 /pm_filter
parent347a756e384ec6994d4fe7ffe82e384bb9a63057 (diff)
downloadikiwiki-f4d99ac1ca03121255e545df89e7d841a02cc0bf.tar
ikiwiki-f4d99ac1ca03121255e545df89e7d841a02cc0bf.tar.gz
* Use DESTDIR and not PREFIX to specify installation prefix for packaging.
* Support running "perl Makefile.PL PREFIX=foo" to build ikiwiki to run from a different directory.
Diffstat (limited to 'pm_filter')
-rwxr-xr-xpm_filter16
1 files changed, 16 insertions, 0 deletions
diff --git a/pm_filter b/pm_filter
new file mode 100755
index 000000000..89449bd91
--- /dev/null
+++ b/pm_filter
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -i -p
+
+BEGIN {
+ $prefix=shift;
+ $ver=shift;
+}
+
+if (/INSTALLDIR_AUTOREPLACE/) {
+ $_=qq{my \$installdir="$prefix";};
+}
+elsif (/VERSION_AUTOREPLACE/) {
+ $_=qq{our \$version="$ver";};
+}
+elsif (/^use lib/) {
+ $_="";
+}