tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: handle #! /usr/bin/env

The first pass will transform
#! /usr/bin/env perl
#! perl

and then the second pass will behave as normal to produce
#!@PREFIX@/bin/perl  (or /usr/pkg/bin/perl, I just copied PREFIX from you)


I just successfully used it for a python package, at least.


On Sat, Mar 2, 2013 at 12:25 PM, Greg Troxel <> wrote:
> I am not entirely clear on the behavior you're trying to get.  Are you
> trying to get e.g REPLACE_PERL to not only rewrite
>   #!/usr/bin/perl
> but also
>   #!/usr/bin/env perl
> to
>   #!@PREFIX@/bin/perl
> with no additional controls?  That seems at first glance reasonable, but
> I dimly recall that there are subtle reasons why it's more complicated
> than it ought to be.  So I'm not opposed, but I'd like to hear from
> people who have been part of this discussion before.

Home | Main Index | Thread Index | Old Index