Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Module::Build - how include data files?

by GUIfriend (Novice)
on May 04, 2012 at 08:35 UTC ( #968889=perlquestion: print w/ replies, xml ) Need Help??
GUIfriend has asked for the wisdom of the Perl Monks concerning the following question:

My program consists of several modules, all contained in the same directory, say "mydir". I succeeded in creating a tarball from this by using Module::Build. Now I want to add a subdirectory "mydir/examples", and this should be populated with several text files. How can I manage this?

Comment on Module::Build - how include data files?
Re: Module::Build - how include data files?
by Anonymous Monk on May 04, 2012 at 09:16 UTC
Re: Module::Build - how include data files?
by GUIfriend (Novice) on May 06, 2012 at 17:33 UTC

    I found a rather straightforward way to reach my goal:

    • Copy all examples to the destination directory
    • use $builder->add_build_element('sudo'); immediately before $builder->create_build_script();

      ('.sudo' is the extension of my example files)

    • Use ./Build manifest to update the MANIFEST file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://968889]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2013-06-18 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (597 votes), past polls