in reply to Creating installable scripts

Check out "EXE_FILES" in ExtUtils::MakeMaker. From the documentation:
EXE_FILES
Ref to array of executable files. The files will be copied to the INST_SCRIPT directory. Make realclean will delete them from there again. If your executables start with something like #!perl or #!/usr/bin/perl MakeMaker will change this to the path of the perl 'Makefile.PL' was invoked with so the programs will be sure to run properly even if perl is not in /usr/bin/perl.

Whenever I need to have scripts installed, I just put them in the "scripts" directory and add:

EXE_FILES => [<script/*>],
to the call to ExtUtils::MakeMaker's "WriteMakefile".

Liz

Replies are listed 'Best First'.
Re: Re: Creating installable scripts
by bronto (Priest) on Aug 12, 2003 at 18:52 UTC

    BINGO!

    ++liz! That was exactly what I was looking for!

    Surely I noticed that feature when I read the docs of ExtUtils::MakeMaker months ago, but I completely forgot where I learnt about it; just remembered that something somewhere worked that way.

    Thanks a lot!

    Ciao!
    --bronto


    The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
    --John M. Dlugosz