[FFmpeg-devel] [Patch] Make doc/texi2pod.pl more portable

Dave Yeo daveryeo
Tue Oct 23 04:45:14 CEST 2007

On 10/22/07 07:30 pm, Rich Felker wrote:
> On Mon, Oct 22, 2007 at 07:14:49PM -0700, Dave Yeo wrote:
>> Index: doc/texi2pod.pl
>> ===================================================================
>> --- doc/texi2pod.pl	(revision 10843)
>> +++ doc/texi2pod.pl	(working copy)
>> @@ -1,4 +1,6 @@
>> -#! /usr/bin/perl -w
>> +#!perl
> I don't think this is valid. Although it would be possible to
> implement a kernel that searches the path for the interpreter to run,
> I doubt it's standard behavior and it's probably frowned upon for
> security reasons.
> It works on windows only because the kernel has no idea how to execute
> the script and the shell instead does the work behind the scenes..
> Rich

Yes I'm not sure either. The example in one book suggests #!/bin/sh at 
the top which didn't work here and my perl install installed scripts 
with lines
  like in the patch but with the full Path.
texi2html which I downloaded from 
http://arrozcru.no-ip.org/ffmpeg_sources/ has this which also works
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl 
-S $0 $argv:q'
Actually the attached patch also works here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texi2pod.diff
Type: text/x-patch
Size: 321 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071022/62a31da1/attachment.bin>

More information about the ffmpeg-devel mailing list