Should build/install mung the #! line?

Discussion in 'Perl Misc' started by J Krugman, Jun 14, 2004.

  1. J Krugman

    J Krugman Guest

    When a distribution includes executable scripts, should the
    build/install procedure mung the first (#!) line of these scripts,
    to make sure they match the path to perl in the local system? Or
    should this problem be handled by including appropriate manual
    configuration instructions in a README or INSTALL file? Is there
    a "standard practice" for this?

    TIA,

    jill

    --
    To s&e^n]d me m~a}i]l r%e*m?o\v[e bit from my a|d)d:r{e:s]s.
    J Krugman, Jun 14, 2004
    #1
    1. Advertising

  2. J Krugman

    Ben Morrow Guest

    Quoth J Krugman <>:
    >
    >
    > When a distribution includes executable scripts, should the
    > build/install procedure mung the first (#!) line of these scripts,
    > to make sure they match the path to perl in the local system? Or
    > should this problem be handled by including appropriate manual
    > configuration instructions in a README or INSTALL file? Is there
    > a "standard practice" for this?


    perldoc ExtUtils::MakeMaker:
    | 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.

    Ben

    --
    Lie all men in Babylon I have been a proconsul; like all, a slave ... During
    one lunar year, I have been declared invisible; I shrieked and was not heard,
    I stole my bread and was not decapitated.
    ~ ~ Jorge Luis Borges, 'The Babylon Lottery'
    Ben Morrow, Jun 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hugo
    Replies:
    10
    Views:
    1,291
    Matt Humphrey
    Oct 18, 2004
  2. kaushikshome
    Replies:
    4
    Views:
    753
    kaushikshome
    Sep 10, 2006
  3. scad
    Replies:
    23
    Views:
    1,144
    Alf P. Steinbach
    May 17, 2009
  4. Replies:
    10
    Views:
    253
    Robert Klemme
    Oct 11, 2008
  5. Marek Stepanek
    Replies:
    12
    Views:
    401
    Peter J. Holzer
    Sep 2, 2006
Loading...

Share This Page