From d4e40f0690befff7e4668f69850674f29a0c453b Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Sun, 7 Jan 2018 01:34:46 -0500 Subject: 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 --- lib/checksrc.pl | 2 +- lib/mk-ca-bundle.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3