diff options
author | Peter Powell <petpow@saberuk.com> | 2014-10-01 19:52:23 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2014-12-07 22:36:42 +0000 |
commit | 11f4d02e7020cb5775d2b89af0e652e53cd90ed7 (patch) | |
tree | 17bc1cc90d178cd470c60a421ef7e947fb94b9c9 /configure | |
parent | 48f8f79317a04891e2becd859363add6eb2d6444 (diff) |
Add Perl module for console related code.
- Move prompt_* methods to this module.
- Add methods for printing errors and warnings easily.
- Add colour code helpers and switch all code to use them.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -39,6 +39,7 @@ use Cwd; use Getopt::Long; use make::configure; +use make::console; use make::utilities; our ($opt_use_gnutls, $opt_use_openssl, $opt_nointeractive, $opt_socketengine, @@ -277,8 +278,8 @@ STOP # Check that the user actually wants this version. if ($version{LABEL} ne 'release') { - print <<"EOW" ; -\e[1;31mWARNING!\e[0m You are building a development version. This contains code which has + 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 affect the running of your server. It is recommended that you use a stable version instead. |