mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Add development version checks to non-interactive mode.
This commit is contained in:
parent
88bfcabe02
commit
1dc79dcdff
11
configure
vendored
11
configure
vendored
@ -46,6 +46,7 @@ use make::console;
|
||||
my ($opt_binary_dir,
|
||||
$opt_config_dir,
|
||||
$opt_data_dir,
|
||||
$opt_development,
|
||||
$opt_disable_interactive,
|
||||
$opt_distribution_label,
|
||||
$opt_gid,
|
||||
@ -71,6 +72,7 @@ GetOptions(
|
||||
'help' => \&cmd_help,
|
||||
'update' => \&cmd_update,
|
||||
|
||||
'development' => \$opt_development,
|
||||
'disable-interactive' => \$opt_disable_interactive,
|
||||
'distribution-label=s' => \$opt_distribution_label,
|
||||
'binary-dir=s' => \$opt_binary_dir,
|
||||
@ -107,6 +109,7 @@ our $interactive = !(
|
||||
defined $opt_binary_dir ||
|
||||
defined $opt_config_dir ||
|
||||
defined $opt_data_dir ||
|
||||
defined $opt_development ||
|
||||
defined $opt_disable_interactive ||
|
||||
defined $opt_distribution_label ||
|
||||
defined $opt_gid ||
|
||||
@ -233,7 +236,7 @@ $config{UID} = $user[2];
|
||||
system 'tput', 'clear' if $interactive;
|
||||
|
||||
# Check that the user actually wants this version.
|
||||
if ($version{LABEL} ne 'release' && $interactive) {
|
||||
if ($version{LABEL} ne 'release') {
|
||||
print_warning <<'EOW';
|
||||
You are building a development version. This contains code which has
|
||||
not been tested as heavily and may contain various faults which could seriously
|
||||
@ -242,9 +245,11 @@ version instead.
|
||||
|
||||
You can obtain the latest stable version from http://www.inspircd.org/ or by
|
||||
running `git checkout insp20` if you are installing from Git.
|
||||
|
||||
EOW
|
||||
exit 1 unless prompt_bool $interactive, 'I understand this warning and want to continue anyway.', !$interactive;
|
||||
if (!prompt_bool $interactive, 'I understand this warning and want to continue anyway.', $opt_development || 0) {
|
||||
print STDERR "If you understand this warning and still want to continue pass the --development flag.\n" unless $interactive;
|
||||
exit 1;
|
||||
}
|
||||
}
|
||||
|
||||
# Configure directory settings.
|
||||
|
@ -51,7 +51,7 @@ foreach my $compiler (@compilers) {
|
||||
foreach my $socketengine (@socketengines) {
|
||||
print "Attempting to build using the $compiler compiler and the $socketengine socket engine...\n";
|
||||
system './configure', '--enable-extras', $ENV{TEST_BUILD_MODULES} if defined $ENV{TEST_BUILD_MODULES};
|
||||
if (system './configure', '--disable-interactive', '--socketengine', $socketengine) {
|
||||
if (system './configure', '--development', '--socketengine', $socketengine) {
|
||||
print "Failed to configure using the $compiler compiler and the $socketengine socket engine!\n";
|
||||
exit 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user