I'm looking for a few tips on how to install my programs in the install script. I'm not looking exactly for
where to put them as how to set them up.
For instance, I could just copy all the scripts and support libraries to a directory, then put a shell script in /usr/bin that looks like this
cd /usr/lib/perl_prog/
perl start.pl
At the moment I've been distributing bits of the program all over the place - the main script file in /usr/bin and then doing a use lib '/usr/lib/perl_prog/'. I've been avoiding putting my modules in the perl @INC structure because it doesn't seem quite right - the library modules aren't general purpose, so I'm just polluting the directory structure.
So how do you do it?
____________________
Jeremy
I didn't believe in evil until I dated it.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.