projects
/
ikiwiki
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
web commit by joey
[ikiwiki]
/
pm_filter
1
#!/usr/bin/perl -i -p
2
3
BEGIN {
4
$prefix=shift;
5
$ver=shift;
6
}
7
8
if (/INSTALLDIR_AUTOREPLACE/) {
9
$_=qq{my \$installdir="$prefix";};
10
}
11
elsif (/VERSION_AUTOREPLACE/) {
12
$_=qq{our \$version="$ver";};
13
}
14
elsif (/^use lib/) {
15
$_="";
16
}