From dd1e33c8dc30c4d30e65688dabff7c66a456675e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 7 May 2020 13:54:10 +0200 Subject: [PATCH] meson: drop "meson-" prefix from various helper script filenames In a few cases, the prefix was originally necessary because a different helper script was used for automake, and a different one for meson. But now we use meson exclusively, and the prefix isn't useful. This also synchronizes the target name, file name, and variable name in meson.build. The targets exposed by meson didn't have the prefix, so the user interface is unchanged. (The prefix is retained in the few tools that are used for meson itself, e.g. meosn-vcs-tag.sh, meson-make-symlink.sh, etc.) --- meson.build | 18 +++++++++--------- ...suspend-update.sh => autosuspend-update.sh} | 0 ...son-check-api-docs.sh => check-api-docs.sh} | 0 ...eck-compilation.sh => check-compilation.sh} | 0 tools/{meson-check-help.sh => check-help.sh} | 0 tools/{meson-git-contrib.sh => git-contrib.sh} | 0 tools/{meson-hwdb-update.sh => hwdb-update.sh} | 0 7 files changed, 9 insertions(+), 9 deletions(-) rename tools/{meson-autosuspend-update.sh => autosuspend-update.sh} (100%) rename tools/{meson-check-api-docs.sh => check-api-docs.sh} (100%) rename tools/{meson-check-compilation.sh => check-compilation.sh} (100%) rename tools/{meson-check-help.sh => check-help.sh} (100%) rename tools/{meson-git-contrib.sh => git-contrib.sh} (100%) rename tools/{meson-hwdb-update.sh => hwdb-update.sh} (100%) diff --git a/meson.build b/meson.build index a922f9a2f1..28494c9af2 100644 --- a/meson.build +++ b/meson.build @@ -299,7 +299,7 @@ substs.set('BUILD_ROOT', project_build_root cc = meson.get_compiler('c') pkgconfig = import('pkgconfig') -check_compilation_sh = find_program('tools/meson-check-compilation.sh') +check_compilation_sh = find_program('tools/check-compilation.sh') meson_build_sh = find_program('tools/meson-build.sh') want_tests = get_option('tests') @@ -3244,8 +3244,8 @@ run_target( make_directive_index_py = find_program('tools/make-directive-index.py') make_man_index_py = find_program('tools/make-man-index.py') xml_helper_py = find_program('tools/xml_helper.py') -hwdb_update_sh = find_program('tools/meson-hwdb-update.sh') -autosuspend_update_sh = find_program('tools/meson-autosuspend-update.sh') +hwdb_update_sh = find_program('tools/hwdb-update.sh') +autosuspend_update_sh = find_program('tools/autosuspend-update.sh') subdir('sysctl.d') subdir('sysusers.d') @@ -3286,13 +3286,13 @@ meson.add_install_script('sh', '-c', 'touch $DESTDIR@0@'.format(prefixdir)) ############################################################ -meson_check_help = find_program('tools/meson-check-help.sh') +check_help = find_program('tools/check-help.sh') foreach exec : public_programs name = exec.full_path().split('/')[-1] if want_tests != 'false' test('check-help-' + name, - meson_check_help, + check_help, args : exec.full_path()) endif endforeach @@ -3371,10 +3371,10 @@ if git.found() endif if git.found() - meson_git_contrib_sh = find_program('tools/meson-git-contrib.sh') + git_contrib_sh = find_program('tools/git-contrib.sh') run_target( 'git-contrib', - command : [meson_git_contrib_sh]) + command : [git_contrib_sh]) endif if git.found() @@ -3398,11 +3398,11 @@ endif ############################################################ -meson_check_api_docs_sh = find_program('tools/meson-check-api-docs.sh') +check_api_docs_sh = find_program('tools/check-api-docs.sh') run_target( 'check-api-docs', depends : [man, libsystemd, libudev], - command : [meson_check_api_docs_sh, libsystemd.full_path(), libudev.full_path()]) + command : [check_api_docs_sh, libsystemd.full_path(), libudev.full_path()]) ############################################################ watchdog_opt = service_watchdog == '' ? 'disabled' : service_watchdog diff --git a/tools/meson-autosuspend-update.sh b/tools/autosuspend-update.sh similarity index 100% rename from tools/meson-autosuspend-update.sh rename to tools/autosuspend-update.sh diff --git a/tools/meson-check-api-docs.sh b/tools/check-api-docs.sh similarity index 100% rename from tools/meson-check-api-docs.sh rename to tools/check-api-docs.sh diff --git a/tools/meson-check-compilation.sh b/tools/check-compilation.sh similarity index 100% rename from tools/meson-check-compilation.sh rename to tools/check-compilation.sh diff --git a/tools/meson-check-help.sh b/tools/check-help.sh similarity index 100% rename from tools/meson-check-help.sh rename to tools/check-help.sh diff --git a/tools/meson-git-contrib.sh b/tools/git-contrib.sh similarity index 100% rename from tools/meson-git-contrib.sh rename to tools/git-contrib.sh diff --git a/tools/meson-hwdb-update.sh b/tools/hwdb-update.sh similarity index 100% rename from tools/meson-hwdb-update.sh rename to tools/hwdb-update.sh