diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-25 02:12:43 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-25 02:12:43 +0000 |
commit | f4d99ac1ca03121255e545df89e7d841a02cc0bf (patch) | |
tree | bdabb182ecd4fb16e50d1a987de70440ec466349 /pm_filter | |
parent | 347a756e384ec6994d4fe7ffe82e384bb9a63057 (diff) |
* 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-x | pm_filter | 16 |
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/) { + $_=""; +} |