Changeset 1145
- Timestamp:
- 01/28/08 15:08:26 (7 months ago)
- Files:
-
- trunk/Build.PL (modified) (4 diffs)
- trunk/INSTALL (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Build.PL
r1128 r1145 2 2 use lib "lib"; 3 3 use Data::Dumper; 4 use Getopt::Long; 4 5 5 6 eval { … … 12 13 die "Problem loading OpenGuides module or a missing module\n\n$@.\n" if $@; 13 14 14 print <<EOF; 15 my $force; 16 17 GetOptions('force' => \$force); 18 19 unless ($force) { 20 print <<EOF; 15 21 16 22 Beginning install process... if you already have an OpenGuides … … 23 29 my $continue = Module::Build->y_n("Continue with install?", "y"); 24 30 exit 0 unless $continue; 31 } 25 32 26 33 my $existing_config_file = 'wiki.conf'; … … 46 53 send_moderation_notifications); 47 54 48 my $skip_config = Module::Build->y_n("Skip OpenGuides configuration?", "n");55 my $skip_config = $force ? 'y' : Module::Build->y_n("Skip OpenGuides configuration?", "n"); 49 56 if ( $skip_config ) { 50 57 print <<EOF; trunk/INSTALL
r1131 r1145 33 33 34 34 Answer "n" to this question unless you really know what you're doing. 35 It's mainly there for developers. 35 It's mainly there for developers. (If you already have a configuration 36 file, and wish to use it without the build script asking you this 37 question, run Build.PL with the option --force. This will also skip 38 the "Continue with install?" question.) 36 39 37 40
