summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-05-19 12:59:10 +0000
committerNicholas Clark <nick@ccl4.org>2008-05-19 12:59:10 +0000
commitdca8fd5cbbabc88a58ed21681e67afeed1ba9633 (patch)
tree7d713c5ffca46931900cdbc9b3b467ddb50854a6 /installperl
parent3cc5758cc9b03e7b50c88cbe31e0a62befbbce74 (diff)
downloadperl-dca8fd5cbbabc88a58ed21681e67afeed1ba9633.tar.gz
Add -w, tweak some comments.
p4raw-id: //depot/perl@33864
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl10
1 files changed, 7 insertions, 3 deletions
diff --git a/installperl b/installperl
index 54e657826f..623034eead 100755
--- a/installperl
+++ b/installperl
@@ -1,4 +1,4 @@
-#!./perl
+#!./perl -w
BEGIN {
require 5.004;
@@ -6,7 +6,7 @@ BEGIN {
@INC = 'lib';
$ENV{PERL5LIB} = 'lib';
- # This needs to be at BEGIN time, before the use Config; below.
+ # This needs to be at BEGIN time, before any use of Config
require './install_lib.pl';
}
@@ -15,6 +15,8 @@ use vars qw($Is_VMS $Is_W32 $Is_OS2 $Is_Cygwin $Is_Darwin $Is_NetWare
%opts $packlist);
my ($dostrip, $versiononly, $force,
$otherperls, $archname, $nwinstall, $nopods);
+# Not sure how easy it would be to refactor to remove the need for local $depth
+# below
use vars qw /$depth/;
BEGIN {
@@ -43,7 +45,7 @@ sub mkpath {
my $mainperldir = "/usr/bin";
my $exe_ext = $Config{exe_ext};
-# Allow ``make install PERLNAME=something_besides_perl'':
+# Allow "make install PERLNAME=something_besides_perl":
my $perl = defined($ENV{PERLNAME}) ? $ENV{PERLNAME} : 'perl';
# This is the base used for versioned names, like "perl5.6.0".
@@ -65,6 +67,8 @@ if ( $Is_VMS ) {
}
$otherperls = 1;
+# Consider refactoring this to use Getopt::Long once Getopt::Long's planned
+# feature is implemented, to distinguish + and - options.
while (@ARGV) {
$opts{notify} = 1 if $ARGV[0] eq '-n';
$dostrip = 1 if $ARGV[0] eq '-s';