Changeset 913

Show
Ignore:
Timestamp:
12/11/06 17:42:53 (2 years ago)
Author:
dom
Message:

Fix problem with missing wiki.conf (#162).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r910 r913  
    2020exit 0 unless $continue; 
    2121 
    22 my $existing_config = OpenGuides::Config->new( file => "wiki.conf" ); 
     22my $existing_config_file = 'wiki.conf'; 
     23my $existing_config; 
     24 
     25if (-f $existing_config_file) { 
     26    $existing_config = OpenGuides::Config->new(file => $existing_config_file); 
     27} else { 
     28    print <<EOF; 
     29No existing configuration file found; assuming this is a new install. 
     30If this is not correct, you should press Ctrl-C now, and copy your current 
     31wiki.conf into the current directory before re-running Build.PL. 
     32 
     33EOF 
     34    $existing_config = OpenGuides::Config->new(); 
     35} 
    2336 
    2437my %yn_vars = map { $_ => 1 }