A very excellent suggestion and certainly part of the story, thank you :)

My understanding is that install_script will perform all of the necessary work to install the various additional scripts.

Is there a way to additionally include the execution of distname_any-file.pl as part of the make install procedure?

Perhaps it's easier with a working example to explain what I am doing (disclaimer: I have substituted my project name for the standard Catalyst tutorial myapp):

Leaning on the advice of another reply to my original post (and to keep this explanation as simple as possible), I have created a database directory called database in the root directory of the project (so it's a sibling of script, root, lib, etc.), with the database update-upgrade script myapp_database.pl, and a directory called sql containing the necessary SQL files. The relevant part of the output of tree -fi is:

./database ./database/myapp_database.pl ./database/sql ./database/sql/create-tables.sql ./database/sql/create-data.sql

My Makefile.PL now also includes:

install_script glob('database/myapp_database.pl'); install_share ( 'dist', 'database/sql');

This nicely places the script and the SQL files in sensible places within the blib directory (genuinely impressed at how easy this was!)

What I would like to do at this point is add something like:

post_install_execute 'myapp_database.pl';

Is this, or something equivalent, possible?

Thank you again!


In reply to Re^2: Where should one place support scripts and resources within a Catalyst project? by JNW
in thread [SOLVED] Where should one place support scripts and resources within a Catalyst project? by JNW

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.