8 Commits

Author SHA1 Message Date
Peter Powell
a580cacb19 Improve the accessibility and robustness of prompt_bool.
- Use "yes" and "no" instead of "y" and "n".
- Validate the true and false responses properly.
- Keep prompting the user for a response until they give one which
  is valid.
2019-01-29 21:18:18 +00:00
Peter Powell
b6a69e98ee Add a nice API for command line interfaces to make::console. 2017-03-25 00:54:25 +00:00
Peter Powell
6c98c29874 Fix print_format breaking when formatting empty strings. 2016-09-14 23:47:01 +01:00
Peter Powell
4133ccb043 Allow print_error and print_warning to take multiple lines. 2016-09-14 23:47:01 +01:00
Peter Powell
7c31c005fc Extract directory creation code to its own subroutine. 2016-03-22 23:38:37 +00:00
Peter Powell
aae283e1dd Convert the build system to Perl 5.10.
Thanks to Kross for the heads up on "use feature".
2015-03-25 19:01:33 +00:00
Peter Powell
88bfcabe02 Create installation directories with make install not configure.
This fixes system-wide installations requiring root in order to
create directories.
2015-03-06 16:13:11 +00:00
Peter Powell
11f4d02e70 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.
2014-12-07 22:36:42 +00:00