Changeset 7342

Show
Ignore:
Timestamp:
10/06/05 18:35:16 (3 years ago)
Author:
iblech
Message:

* PugsBuild::Config: Honour the new PUGS_BUILD_CONFIG env var.
* pugs::run: Document this new var.
* util/run-smoke.pl: Added appropriate use lib File::Spec->catdir(...) so

PugsBuild::Config can be loaded without -I or $PERLLIB.

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • inc/PugsBuild/Config.pm

    r7340 r7342  
    3939    my $stream; 
    4040     
    41     if (!-e ($filename ||= "config.yml")) { 
     41    if (!-e ($filename ||= ($ENV{PUGS_BUILD_CONFIG} || "config.yml"))) { 
    4242        require File::Copy; 
    4343        File::Copy::copy ('util/config-template.yml', $filename) or 
  • lib/pugs/run.pod

    r7127 r7342  
    220220(Has no effect on Windows.) 
    221221 
     222=item C<PUGS_BUILD_CONFIG> [BUILD] 
     223 
     224If set, the file specified in C<PUGS_BUILD_CONFIG> will be used as 
     225configuration file. The default is F<config.yml>. 
     226 
    222227=back 
    223228 
  • util/run-smoke.pl

    r7341 r7342  
    77use File::Spec; 
    88use FindBin; 
     9use lib File::Spec->catdir($FindBin::Bin, "..", "inc"); 
    910use PugsBuild::Config; 
    1011 
     
    7071        $^X $smoke_upload_script $html_location 
    7172 
    72     Or add: 
    73      smoke_upload: 1  
    74     To your config.yml file to automaticaly upload your smoke file. 
     73    Or add 
     74        smoke_upload: 1  
     75    to your config.yml file if you want the reports to be uploaded 
     76    automatically. 
    7577EOF 
    7678}