summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2018-01-07 01:34:46 -0500
committerJay Satiro <raysatiro@yahoo.com>2018-01-07 15:42:11 -0500
commitd4e40f0690befff7e4668f69850674f29a0c453b (patch)
treecff8b69589f91a6da3be4e5576158bd77e3bf935
parente4f86025d6ba3f0029a592d9326dc7d1350e5bea (diff)
downloadcurl-d4e40f0690befff7e4668f69850674f29a0c453b.tar.gz
scripts: allow all perl scripts to be run directly
- Enable execute permission (chmod +x) - Change interpreter to /usr/bin/env perl Closes https://github.com/curl/curl/pull/2222
-rwxr-xr-xdocs/cmdline-opts/gen.pl2
-rwxr-xr-xdocs/examples/adddocsref.pl2
-rwxr-xr-x[-rw-r--r--]docs/libcurl/mksymbolsmanpage.pl2
-rwxr-xr-xdocs/libcurl/symbols.pl2
-rwxr-xr-xlib/checksrc.pl2
-rwxr-xr-xlib/mk-ca-bundle.pl3
-rwxr-xr-xscripts/log2changes.pl2
-rwxr-xr-xscripts/updatemanpages.pl2
-rwxr-xr-xscripts/zsh.pl2
-rwxr-xr-x[-rw-r--r--]tests/libtest/mk-lib1521.pl0
-rwxr-xr-x[-rw-r--r--]tests/manpage-scan.pl0
-rwxr-xr-x[-rw-r--r--]tests/mem-include-scan.pl0
-rwxr-xr-x[-rw-r--r--]tests/nroff-scan.pl0
-rwxr-xr-x[-rw-r--r--]tests/server/base64.pl2
-rwxr-xr-x[-rw-r--r--]tests/symbol-scan.pl0
15 files changed, 11 insertions, 10 deletions
diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl
index 73ea6d47b..6ecf1b51e 100755
--- a/docs/cmdline-opts/gen.pl
+++ b/docs/cmdline-opts/gen.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
=begin comment
diff --git a/docs/examples/adddocsref.pl b/docs/examples/adddocsref.pl
index efebfe2bc..ce6f58287 100755
--- a/docs/examples/adddocsref.pl
+++ b/docs/examples/adddocsref.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# pass files as argument(s)
diff --git a/docs/libcurl/mksymbolsmanpage.pl b/docs/libcurl/mksymbolsmanpage.pl
index 21053c408..8ae202e46 100644..100755
--- a/docs/libcurl/mksymbolsmanpage.pl
+++ b/docs/libcurl/mksymbolsmanpage.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# ***************************************************************************
# * _ _ ____ _
# * Project ___| | | | _ \| |
diff --git a/docs/libcurl/symbols.pl b/docs/libcurl/symbols.pl
index cfcecd034..d61bd048f 100755
--- a/docs/libcurl/symbols.pl
+++ b/docs/libcurl/symbols.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index c1f74bebf..92af9000c 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
diff --git a/lib/mk-ca-bundle.pl b/lib/mk-ca-bundle.pl
index dcfec0bb6..5a84f6b0b 100755
--- a/lib/mk-ca-bundle.pl
+++ b/lib/mk-ca-bundle.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# ***************************************************************************
# * _ _ ____ _
# * Project ___| | | | _ \| |
@@ -34,6 +34,7 @@ use Encode;
use Getopt::Std;
use MIME::Base64;
use strict;
+use warnings;
use vars qw($opt_b $opt_d $opt_f $opt_h $opt_i $opt_k $opt_l $opt_m $opt_n $opt_p $opt_q $opt_s $opt_t $opt_u $opt_v $opt_w);
use List::Util;
use Text::Wrap;
diff --git a/scripts/log2changes.pl b/scripts/log2changes.pl
index 667daabf0..f3454b01f 100755
--- a/scripts/log2changes.pl
+++ b/scripts/log2changes.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# git log --pretty=fuller --no-color --date=short --decorate=full
diff --git a/scripts/updatemanpages.pl b/scripts/updatemanpages.pl
index 6a58dbd42..e144bad11 100755
--- a/scripts/updatemanpages.pl
+++ b/scripts/updatemanpages.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
diff --git a/scripts/zsh.pl b/scripts/zsh.pl
index 82b4d9fa2..1257190df 100755
--- a/scripts/zsh.pl
+++ b/scripts/zsh.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Generate ZSH completion
diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl
index 6ded47220..6ded47220 100644..100755
--- a/tests/libtest/mk-lib1521.pl
+++ b/tests/libtest/mk-lib1521.pl
diff --git a/tests/manpage-scan.pl b/tests/manpage-scan.pl
index b6864c857..b6864c857 100644..100755
--- a/tests/manpage-scan.pl
+++ b/tests/manpage-scan.pl
diff --git a/tests/mem-include-scan.pl b/tests/mem-include-scan.pl
index 8922bd4a3..8922bd4a3 100644..100755
--- a/tests/mem-include-scan.pl
+++ b/tests/mem-include-scan.pl
diff --git a/tests/nroff-scan.pl b/tests/nroff-scan.pl
index 393068cd3..393068cd3 100644..100755
--- a/tests/nroff-scan.pl
+++ b/tests/nroff-scan.pl
diff --git a/tests/server/base64.pl b/tests/server/base64.pl
index 2eab1fa4d..449c3103a 100644..100755
--- a/tests/server/base64.pl
+++ b/tests/server/base64.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
use MIME::Base64 qw(encode_base64);
diff --git a/tests/symbol-scan.pl b/tests/symbol-scan.pl
index 5d570d8a8..5d570d8a8 100644..100755
--- a/tests/symbol-scan.pl
+++ b/tests/symbol-scan.pl