From: Vadim Konovalov Date: Mon, 11 Jun 2007 19:19:31 +0000 (+0400) Subject: Re: [PATCH-at-31365] (was - configpm frustrations) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d2d98f31b0d4b556ddadee260502d51e6877de96;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH-at-31365] (was - configpm frustrations) Message-ID: <466D6803.1020808@vkonovalov.ru> p4raw-id: //depot/perl@31366 --- diff --git a/Makefile.SH b/Makefile.SH index d7a48c4..9b9920e 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -822,7 +822,7 @@ makeppport: miniperl$(EXE_EXT) $(CONFIGPM) $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib mkppport lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary - $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm + $(LDLIBPTH) ./miniperl -Ilib configpm $(CONFIGPM): lib/Config.pod diff --git a/configpm b/configpm index ced0ad7..1fb9c3e 100755 --- a/configpm +++ b/configpm @@ -31,12 +31,9 @@ # on Config.pm should trigger even if only Config_heavy.pl has changed. sub usage { die < '', # --cross=PLATFORM - crosscompiling for PLATFORM 'glossary' => 1, # --no-glossary - no glossary file inclusion, # for compactness - 'heavy' => '', # pathname of the Config_heavy.pl file ); sub opts { @@ -90,29 +86,24 @@ sub opts { my %Opts = opts(); my ($Config_SH, $Config_PM, $Config_heavy, $Config_POD); -my $Glossary = $ARGV[1] || 'Porting/Glossary'; +my $Glossary = 'Porting/Glossary'; if ($Opts{cross}) { # creating cross-platform config file mkdir "xlib"; mkdir "xlib/$Opts{cross}"; - $Config_PM = $ARGV[0] || "xlib/$Opts{cross}/Config.pm"; + $Config_PM = "xlib/$Opts{cross}/Config.pm"; $Config_POD = "xlib/$Opts{cross}/Config.pod"; $Config_SH = "Cross/config-$Opts{cross}.sh"; } else { - $Config_PM = $ARGV[0] || 'lib/Config.pm'; + $Config_PM = "lib/Config.pm"; $Config_POD = "lib/Config.pod"; $Config_SH = "config.sh"; } -if ($Opts{heavy}) { - $Config_heavy = $Opts{heavy}; -} -else { - ($Config_heavy = $Config_PM) =~ s!\.pm$!_heavy.pl!; - die "Can't automatically determine name for Config_heavy.pl from '$Config_PM'" - if $Config_heavy eq $Config_PM; -} +($Config_heavy = $Config_PM) =~ s/\.pm$/_heavy.pl/; +die "Can't automatically determine name for Config_heavy.pl from '$Config_PM'" + if $Config_heavy eq $Config_PM; my $config_txt; my $heavy_txt;