Commit 5bba2dbb authored by Peter Hutterer's avatar Peter Hutterer

tools: add the libinput version to the man pages

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@imgtec.com>
parent 24ad0082
...@@ -46,6 +46,7 @@ AC_USE_SYSTEM_EXTENSIONS ...@@ -46,6 +46,7 @@ AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC_C99 AC_PROG_CC_C99
AC_PROG_CXX # Only used by build C++ test AC_PROG_CXX # Only used by build C++ test
AC_PROG_GREP AC_PROG_GREP
AC_PROG_SED
# Only used for testing the hwdb # Only used for testing the hwdb
AM_PATH_PYTHON([3.0],, [:]) AM_PATH_PYTHON([3.0],, [:])
......
...@@ -357,6 +357,9 @@ lib_tools_shared = static_library('tools_shared', ...@@ -357,6 +357,9 @@ lib_tools_shared = static_library('tools_shared',
dep_tools_shared = declare_dependency(link_with : lib_tools_shared, dep_tools_shared = declare_dependency(link_with : lib_tools_shared,
dependencies : deps_tools_shared) dependencies : deps_tools_shared)
man_config = configuration_data()
man_config.set('LIBINPUT_VERSION', meson.project_version())
deps_tools = [ dep_tools_shared, dep_libinput ] deps_tools = [ dep_tools_shared, dep_libinput ]
libinput_debug_events_sources = [ 'tools/libinput-debug-events.c' ] libinput_debug_events_sources = [ 'tools/libinput-debug-events.c' ]
executable('libinput-debug-events', executable('libinput-debug-events',
...@@ -366,7 +369,12 @@ executable('libinput-debug-events', ...@@ -366,7 +369,12 @@ executable('libinput-debug-events',
install_dir : libinput_tool_path, install_dir : libinput_tool_path,
install : true install : true
) )
install_man('tools/libinput-debug-events.1') configure_file(input : 'tools/libinput-debug-events.man',
output : 'libinput-debug-events.1',
configuration : man_config,
install : true,
install_dir : join_paths(get_option('mandir'), 'man1')
)
libinput_list_devices_sources = [ 'tools/libinput-list-devices.c' ] libinput_list_devices_sources = [ 'tools/libinput-list-devices.c' ]
executable('libinput-list-devices', executable('libinput-list-devices',
...@@ -376,7 +384,12 @@ executable('libinput-list-devices', ...@@ -376,7 +384,12 @@ executable('libinput-list-devices',
install_dir : libinput_tool_path, install_dir : libinput_tool_path,
install : true, install : true,
) )
install_man('tools/libinput-list-devices.1') configure_file(input : 'tools/libinput-list-devices.man',
output : 'libinput-list-devices.1',
configuration : man_config,
install : true,
install_dir : join_paths(get_option('mandir'), 'man1')
)
libinput_measure_sources = [ 'tools/libinput-measure.c' ] libinput_measure_sources = [ 'tools/libinput-measure.c' ]
executable('libinput-measure', executable('libinput-measure',
...@@ -386,7 +399,12 @@ executable('libinput-measure', ...@@ -386,7 +399,12 @@ executable('libinput-measure',
install_dir : libinput_tool_path, install_dir : libinput_tool_path,
install : true, install : true,
) )
install_man('tools/libinput-measure.1') configure_file(input : 'tools/libinput-measure.man',
output : 'libinput-measure.1',
configuration : man_config,
install : true,
install_dir : join_paths(get_option('mandir'), 'man1')
)
libinput_measure_touchpad_tap_sources = [ 'tools/libinput-measure-touchpad-tap.c' ] libinput_measure_touchpad_tap_sources = [ 'tools/libinput-measure-touchpad-tap.c' ]
executable('libinput-measure-touchpad-tap', executable('libinput-measure-touchpad-tap',
...@@ -396,7 +414,12 @@ executable('libinput-measure-touchpad-tap', ...@@ -396,7 +414,12 @@ executable('libinput-measure-touchpad-tap',
install_dir : libinput_tool_path, install_dir : libinput_tool_path,
install : true, install : true,
) )
install_man('tools/libinput-measure-touchpad-tap.1') configure_file(input : 'tools/libinput-measure-touchpad-tap.man',
output : 'libinput-measure-touchpad-tap.1',
configuration : man_config,
install : true,
install_dir : join_paths(get_option('mandir'), 'man1')
)
if get_option('debug-gui') if get_option('debug-gui')
dep_gtk = dependency('gtk+-3.0') dep_gtk = dependency('gtk+-3.0')
...@@ -416,7 +439,12 @@ if get_option('debug-gui') ...@@ -416,7 +439,12 @@ if get_option('debug-gui')
install_dir : libinput_tool_path, install_dir : libinput_tool_path,
install : true install : true
) )
install_man('tools/libinput-debug-gui.1') configure_file(input : 'tools/libinput-debug-gui.man',
output : 'libinput-debug-gui.1',
configuration : man_config,
install : true,
install_dir : join_paths(get_option('mandir'), 'man1')
)
endif endif
libinput_sources = [ 'tools/libinput-tool.c' ] libinput_sources = [ 'tools/libinput-tool.c' ]
...@@ -427,7 +455,12 @@ executable('libinput', ...@@ -427,7 +455,12 @@ executable('libinput',
include_directories : include_directories ('src'), include_directories : include_directories ('src'),
install : true install : true
) )
install_man('tools/libinput.1') configure_file(input : 'tools/libinput.man',
output : 'libinput.1',
configuration : man_config,
install : true,
install_dir : join_paths(get_option('mandir'), 'man1')
)
meson.add_install_script('tools/install-compat-scripts.sh') meson.add_install_script('tools/install-compat-scripts.sh')
......
...@@ -70,3 +70,10 @@ install-data-hook: ...@@ -70,3 +70,10 @@ install-data-hook:
uninstall-local: uninstall-local:
rm -f $(DESTDIR)$(bindir)/libinput-list-devices rm -f $(DESTDIR)$(bindir)/libinput-list-devices
rm -f $(DESTDIR)$(bindir)/libinput-debug-events rm -f $(DESTDIR)$(bindir)/libinput-debug-events
SUFFIXES = .man
.man.1:
$(AM_V_GEN)$(SED) -e 's|\@LIBINPUT_VERSION\@|$(PACKAGE_VERSION)|' < $< > $@
CLEANFILES = *.1
EXTRA_DIST += $(dist_man1_MANS:.1=.man)
.TH libinput-debug-events "1" .TH libinput-debug-events "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual"
.SH NAME .SH NAME
libinput\-debug\-events \- debug helper for libinput libinput\-debug\-events \- debug helper for libinput
.SH SYNOPSIS .SH SYNOPSIS
......
.TH libinput-debug-gui "1" .TH libinput-debug-gui "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual"
.SH NAME .SH NAME
libinput\-debug\-gui \- visual debug helper for libinput libinput\-debug\-gui \- visual debug helper for libinput
.SH SYNOPSIS .SH SYNOPSIS
......
.TH libinput-list-devices "1" .TH libinput-list-devices "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual"
.SH NAME .SH NAME
libinput\-list\-devices \- list local devices as recognized by libinput libinput\-list\-devices \- list local devices as recognized by libinput
.SH SYNOPSIS .SH SYNOPSIS
......
.TH libinput-measure-touchpad-tap "1" .TH libinput-measure-touchpad-tap "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual"
.SH NAME .SH NAME
libinput\-measure\-touchpad\-tap \- measure tap-to-click properities of devices libinput\-measure\-touchpad\-tap \- measure tap-to-click properities of devices
.SH SYNOPSIS .SH SYNOPSIS
......
.TH libinput-measure "1" .TH libinput-measure "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual"
.SH NAME .SH NAME
libinput\-measure \- measure properties of devices libinput\-measure \- measure properties of devices
.SH SYNOPSIS .SH SYNOPSIS
......
.TH libinput "1" .TH libinput "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual"
.SH NAME .SH NAME
libinput \- tool to interface with libinput libinput \- tool to interface with libinput
.SH SYNOPSIS .SH SYNOPSIS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment