I'm working with Catalyst, which uses the standard Perl system for building a tarball to deploy, which follows the same internal layout as a CPAN module. So, Catalyst doesn't itself document any of that. So I pose the question here, for general Perl community knowledge of these tools.

One of the files used by the program is AppName_local.conf, which if present overrides stuff in AppName.conf. The idea is to have different settings for the development environment. Now, I have more of a sliding scale, where the farther away I get from the dev directory I created it under, the less likely or often I am to use this file, but I can't say that I want it to never leave the original directory. But, the default on the real server should be that it is absent.

So, rather than excluding it from the MANIFEST (there is another file that lists things to simply leave out of the tarball), I want to rename it. It will be there, backed up and unforgotten, but dormant unless I rename it back.

How do I do that? Unlike exclusion, it's not a ready-prepared feature of the Makefile, to my knowledge. I suppose something needs to be added originally to the Makefile.PL file.

Can somebody help me out with a recipe?


In reply to Something for Makefile.PL by John M. Dlugosz

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.