meson: use dashes in colour names

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-03-02 09:09:29 +01:00
parent 96164a3936
commit f7c5427c28
2 changed files with 4 additions and 4 deletions

View File

@ -183,7 +183,7 @@ conf.set_quoted('SYSTEM_SYSVRCND_PATH', sysvrcnd_path)
conf.set_quoted('RC_LOCAL_SCRIPT_PATH_START', get_option('rc-local'))
conf.set_quoted('RC_LOCAL_SCRIPT_PATH_STOP', get_option('halt-local'))
conf.set('ANSI_OK_COLOR', 'ANSI_' + get_option('ok-color').to_upper())
conf.set('ANSI_OK_COLOR', 'ANSI_' + get_option('ok-color').underscorify().to_upper())
conf.set_quoted('USER_CONFIG_UNIT_PATH', join_paths(pkgsysconfdir, 'user'))
conf.set_quoted('USER_DATA_UNIT_PATH', userunitdir)

View File

@ -300,9 +300,9 @@ option('install-tests', type : 'boolean', value : 'false',
option('ok-color', type: 'combo',
choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
'white', 'highlight_black', 'highlight_red', 'highlight_green',
'highlight_yellow', 'highlight_blue', 'highlight_magenta',
'highlight_cyan', 'highlight_white'],
'white', 'highlight-black', 'highlight-red', 'highlight-green',
'highlight-yellow', 'highlight-blue', 'highlight-magenta',
'highlight-cyan', 'highlight-white'],
value : 'green',
description: 'color of the "OK" status message')