Skip to content

Commit

Permalink
Add support for "config.default" file to hold default arguments to Co…
Browse files Browse the repository at this point in the history
…nfigure.pl.
  • Loading branch information
pmichaud committed Jun 9, 2011
1 parent b3f66e1 commit 0579b56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -48,3 +48,4 @@ lib/DateTime/strftime.pir
lib/Safe.pir lib/Safe.pir
rakudo_test_run.tar.gz rakudo_test_run.tar.gz
config.status config.status
config.default
5 changes: 5 additions & 0 deletions Configure.pl
Expand Up @@ -4,6 +4,7 @@
use 5.008; use 5.008;
use strict; use strict;
use warnings; use warnings;
use Text::ParseWords;
use Getopt::Long; use Getopt::Long;
use Cwd; use Cwd;
use lib "tools/lib"; use lib "tools/lib";
Expand All @@ -16,6 +17,10 @@
my $uclang = uc $lang; my $uclang = uc $lang;


MAIN: { MAIN: {
if (-r "config.default") {
unshift @ARGV, shellwords(slurp('config.default'));
}

my %config; my %config;
my $config_status = "${lclang}_config_status"; my $config_status = "${lclang}_config_status";
$config{$config_status} = join(' ', map { "\"$_\""} @ARGV); $config{$config_status} = join(' ', map { "\"$_\""} @ARGV);
Expand Down

0 comments on commit 0579b56

Please sign in to comment.