Module::Build and value substitution in files

95 views Asked by At

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?

1

There are 1 answers

0
brian d foy On BEST ANSWER

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.