[FFmpeg-devel] [PATCH] doc/texi2pod: use env program to detect location of perl interpreter program

Clément Bœsch ubitux at gmail.com
Fri Aug 10 14:12:46 CEST 2012


On Fri, Aug 10, 2012 at 01:55:18PM +0200, Michael Niedermayer wrote:
> On Fri, Aug 10, 2012 at 11:51:57AM +0200, Stefano Sabatini wrote:
> > Should fix perl detection in case perl is not installed in /usr/bin.
> > 
> > Also use an explicit "use warnings" pragma rather than relying on -w,
> > since many OS interpret the second part of the shebang line as an unsplit
> > argument (like "perl -w").
> > ---
> >  doc/texi2pod.pl |    4 +++-
> >  1 files changed, 3 insertions(+), 1 deletions(-)
> > 
> > diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
> > index 94323be..36e3ae3 100755
> > --- a/doc/texi2pod.pl
> > +++ b/doc/texi2pod.pl
> > @@ -1,4 +1,4 @@
> > -#! /usr/bin/perl -w
> > +#!/usr/bin/env perl
> 
> wont work on haiku as theres no /usr/bin there it seems
> 

The other patch calling "perl texi2pod.pl..." should solve that. It seems
to be the only correct way.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120810/e8e8a851/attachment.asc>


More information about the ffmpeg-devel mailing list