summaryrefslogtreecommitdiff
path: root/pm_filter
blob: 89449bd914122b88f85145a7fd7223ac5635f021 (plain)
  1. #!/usr/bin/perl -i -p
  2. BEGIN {
  3. $prefix=shift;
  4. $ver=shift;
  5. }
  6. if (/INSTALLDIR_AUTOREPLACE/) {
  7. $_=qq{my \$installdir="$prefix";};
  8. }
  9. elsif (/VERSION_AUTOREPLACE/) {
  10. $_=qq{our \$version="$ver";};
  11. }
  12. elsif (/^use lib/) {
  13. $_="";
  14. }