While it is *possible* to write installation scripts in something other than Bourne-shell, there is a strong reason to do so. You are **guaranteed** to have the Bourne shell available during a Solaris installation. You have no such guarantee for any other language.
By putting the requirement of Perl on your 'request script', you run the risk of blowing your Package Installation when a User tries to install your package a) on a machine that does not have Perl installed, b) does not want to have Perl installed on the machine, or c) has an excessively old version of Perl installed. (I have not seen any Solaris distributions with a Perl older than 5.000, so at least you don't have to maintain backward compatibility with Perl4.)
That said, your templates for any install-scripting problem are found in the RC files. It's relatively SMoP (Simple Matter of Programming) to write Perl code from a Bourne Shell psuedo-code template. (But only as a learning exercise, not for something that's going into Production or (even worse) into the Public Domain.)
Happy Coding!
----
I Go Back to Sleep, Now.
OGB
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.