add version to help
This commit is contained in:
parent
ae5cb4be3b
commit
62707d27b0
@ -3,7 +3,8 @@ project('diya-session-manager',
|
|||||||
version: '0.1.1',
|
version: '0.1.1',
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
meson_version: '>=0.58.0',
|
meson_version: '>=0.58.0',
|
||||||
default_options: ['c_std=gnu11', 'warning_level=3'])
|
default_options: ['c_std=gnu11', 'warning_level=3']
|
||||||
|
)
|
||||||
|
|
||||||
lib_so_version = '0'
|
lib_so_version = '0'
|
||||||
|
|
||||||
@ -17,6 +18,7 @@ add_project_arguments(
|
|||||||
'-Wno-pedantic',
|
'-Wno-pedantic',
|
||||||
'-Werror=implicit-function-declaration',
|
'-Werror=implicit-function-declaration',
|
||||||
'-Werror=return-type',
|
'-Werror=return-type',
|
||||||
|
'-DVERSION="@0@"'.format(meson.project_version())
|
||||||
],
|
],
|
||||||
language: 'c')
|
language: 'c')
|
||||||
|
|
||||||
|
@ -16,7 +16,11 @@ static gchar **g_shell_argv;
|
|||||||
|
|
||||||
static void help(const char* name)
|
static void help(const char* name)
|
||||||
{
|
{
|
||||||
|
printf("diya-session-manager - a session manager for diya shells\n");
|
||||||
printf("Usage: %s [-c config_file]\n" ,name);
|
printf("Usage: %s [-c config_file]\n" ,name);
|
||||||
|
#ifdef VERSION
|
||||||
|
printf("Version: %s\n", VERSION);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean restart(gpointer d)
|
static gboolean restart(gpointer d)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user