- Timestamp:
- 10/07/05 18:15:48 (3 years ago)
- Files:
-
- 1 modified
-
inc/PugsBuild/Config.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
inc/PugsBuild/Config.pm
r7382 r7394 5 5 6 6 use File::Copy; 7 use File::Spec;8 7 9 8 # change these two lines if it turns out we need the real YAML.pm … … 39 38 my($class, $filename) = @_; 40 39 my $config_default = 'config.yml'; 41 my $config_template = File::Spec->canonpath('util/config-template.yml');40 my $config_template = 'util/config-template.yml'; 42 41 $filename ||= $ENV{PUGS_BUILD_CONFIG} || $config_default; 43 42 my $stream; … … 47 46 File::Copy::copy ($config_template, $filename) or 48 47 die "copy: $!"; 49 warn<<".";48 print <<"."; 50 49 *** Default build config file created. Edit your settings in $filename. 50 51 51 . 52 52 } … … 57 57 58 58 if (-M $filename > -M $config_template) { 59 warn<<".";59 print <<"."; 60 60 *** Build config file '$filename' is older than template 61 '$config_template'. I will merge them for you, but 62 you may wish to check for new settings. 61 '$config_template'. I will merge them in memory, but 62 you may wish to check for new settings and edit the old 63 config file by hand. 63 64 64 65 .
