Changeset 5755 for inc

Show
Ignore:
Timestamp:
07/22/05 18:22:26 (3 years ago)
Author:
Aankhen
svk:copy_cache_prev:
7758
Message:

* added install_dir key to config.yml -- path to install Pugs in.
* modified Makefile.PL and PugsBuild::Config to handle the new key.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • inc/PugsBuild/Config.pm

    r5749 r5755  
    1818    precompile_modules    => [], 
    1919    ghc_heap_size         => '',       # use GHC's default 
     20    install_dir           => '', 
    2021); 
    2122 
     
    5556    my $conf = $YAML->load($stream); 
    5657    $class->env_override($conf); 
     58     
    5759    $class->defaults($conf); 
    5860    return $conf; 
     
    6769sub defaults { 
    6870    my($class, $conf) = @_; 
    69     do { $conf->{$_} = $DEFAULTS{$_} unless defined $conf->{$_} } for 
     71    do { $conf->{$_} = $DEFAULTS{$_} unless defined $conf->{$_}; } for 
    7072        keys %DEFAULTS; 
    7173}