summaryrefslogtreecommitdiff
path: root/regen_lib.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-04-16 22:57:05 +0100
committerNicholas Clark <nick@ccl4.org>2009-04-16 23:30:11 +0100
commitbb21036d6b2cd6d93d4c5c77bf58ceedb8b0d45c (patch)
tree0320e926df04d799bf674bdc5ee6fe4d0622f573 /regen_lib.pl
parent4acdd4cdd41db68b7a3c5c65f885e95ac933a538 (diff)
downloadperl-bb21036d6b2cd6d93d4c5c77bf58ceedb8b0d45c.tar.gz
Avoid loading Config, as we don't need to distinguish between NetWare and Win32.
Eliminate $Is_W32 $Is_OS2 $Is_Cygwin $Is_NetWare, and simply set $Needs_Write directly from $^O. As far as I can tell, these were all added in 36bb303b6ac55df9c2780b48d374c505 but never actually used for anything.
Diffstat (limited to 'regen_lib.pl')
-rw-r--r--regen_lib.pl14
1 files changed, 2 insertions, 12 deletions
diff --git a/regen_lib.pl b/regen_lib.pl
index 6735bb9294..7d396c0447 100644
--- a/regen_lib.pl
+++ b/regen_lib.pl
@@ -1,22 +1,12 @@
#!/usr/bin/perl -w
use strict;
-use vars qw($Is_W32 $Is_OS2 $Is_Cygwin $Is_NetWare $Needs_Write $Verbose
- @Changed);
-use Config; # Remember, this is running using an existing perl
+use vars qw($Needs_Write $Verbose @Changed);
use File::Compare;
use Symbol;
# Common functions needed by the regen scripts
-$Is_W32 = $^O eq 'MSWin32';
-$Is_OS2 = $^O eq 'os2';
-$Is_Cygwin = $^O eq 'cygwin';
-$Is_NetWare = $Config{osname} eq 'NetWare';
-if ($Is_NetWare) {
- $Is_W32 = 0;
-}
-
-$Needs_Write = $Is_OS2 || $Is_W32 || $Is_Cygwin || $Is_NetWare;
+$Needs_Write = $^O eq 'cygwin' || $^O eq 'os2' || $^O eq 'MSWin32';
$Verbose = 0;
@ARGV = grep { not($_ eq '-q' and $Verbose = -1) }