1

I'm starting to use Module::Build. During the build process I need to do value substitution in some files - changing paths based on installation location etc.

Cannot find anything in Module::Build documentation. I understand that I can extend Module::Build to do nearly anything, but is there some standard way how to do this?

jira
  • 3,890
  • 3
  • 22
  • 32
  • I have example code for this in http://stackoverflow.com/a/5267728. This will be part of [my talk at YAPC](http://act.yapc.eu/ye2012/talk/4065). – daxim Aug 12 '12 at 20:45

1 Answers1

2

Create a Module::Build subclass and add an action to process your template. Override the appropriate targets to make that step a dependency. Start with Module::Build::Cookbook.

brian d foy
  • 129,424
  • 31
  • 207
  • 592