[FFmpeg-devel] [PATCH] doc/texi2pod: use env program to detect location of perl interpreter program
Stefano Sabatini
stefasab at gmail.com
Fri Aug 10 11:51:57 CEST 2012
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
# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
@@ -23,6 +23,8 @@
# markup to Perl POD format. It's intended to be used to extract
# something suitable for a manpage from a Texinfo document.
+use warnings;
+
$output = 0;
$skipping = 0;
%sects = ();
--
1.7.5.4
More information about the ffmpeg-devel
mailing list