[FFmpeg-devel] [PATCH] doc/texi2pod: use env program to detect location of perl interpreter program
Nicolas George
nicolas.george at normalesup.org
Sat Aug 11 00:14:49 CEST 2012
Le quartidi 24 thermidor, an CCXX, Stefano Sabatini a écrit :
> I'll drop this patch, since on "normal" systems it won't fix any
> problem (assuming perl is in the standard place) and on "weird" system
> it won't fix the problem anyway (since we can't predict where env is
> located).
In semi-weird systems that I have known in the past, there was a perfectly
good /usr/bin/env, a recent enough perl in /usr/local/bin and an
antediluvian perl in /usr/bin.
Otherwise, perl' documentation suggest this horrible trick:
#!/bin/sh
#! -*-perl-*-
eval 'exec perl -x -wS $0 ${1+"$@"}'
if 0;
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120811/c36d0bac/attachment.asc>
More information about the ffmpeg-devel
mailing list