From 06689b8d11abaab4003f5b459b53ecc52c7be14c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 7 May 2020 14:01:09 +0200 Subject: [PATCH] meson: rename make-man-rules.py to update-man-rules.py The name of the helper didn't match the name of the meson target, which was always confusing me. With this change, we consistenly use "update" to re-generate things which we otherwise keep in vc, and "make" for things which are generated during each build. --- man/meson.build | 2 +- man/rules/meson.build | 2 +- tools/{make-man-rules.py => update-man-rules.py} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename tools/{make-man-rules.py => update-man-rules.py} (98%) diff --git a/man/meson.build b/man/meson.build index c9d511b080..215b8eeb37 100644 --- a/man/meson.build +++ b/man/meson.build @@ -217,7 +217,7 @@ if git.found() output : 'update-man-rules', command : ['sh', '-c', 'cd @0@ && '.format(meson.build_root()) + - 'python3 @0@/tools/make-man-rules.py $(git ls-files ":/man/*.xml") >t && '.format(project_source_root) + + 'python3 @0@/tools/update-man-rules.py $(git ls-files ":/man/*.xml") >t && '.format(project_source_root) + 'mv t @0@/rules/meson.build'.format(meson.current_source_dir())], depend_files : custom_entities_ent) endif diff --git a/man/rules/meson.build b/man/rules/meson.build index 0d05508e7b..0639b17df6 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -1,4 +1,4 @@ -# Do not edit. Generated by make-man-rules.py. +# Do not edit. Generated by update-man-rules.py. # Update with: # ninja -C build man/update-man-rules manpages = [ diff --git a/tools/make-man-rules.py b/tools/update-man-rules.py similarity index 98% rename from tools/make-man-rules.py rename to tools/update-man-rules.py index d86afcbc15..c404579a2a 100755 --- a/tools/make-man-rules.py +++ b/tools/update-man-rules.py @@ -50,7 +50,7 @@ def mjoin(files): return ' \\\n\t'.join(sorted(files) or '#') MESON_HEADER = '''\ -# Do not edit. Generated by make-man-rules.py. +# Do not edit. Generated by update-man-rules.py. # Update with: # ninja -C build man/update-man-rules manpages = [''' -- 2.25.1