From: Zbigniew Jędrzejewski-Szmek Date: Thu, 7 May 2020 12:01:09 +0000 (+0200) Subject: meson: rename make-man-rules.py to update-man-rules.py X-Git-Tag: v246-rc1~414^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06689b8d11abaab4003f5b459b53ecc52c7be14c;p=thirdparty%2Fsystemd.git 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. --- diff --git a/man/meson.build b/man/meson.build index c9d511b0807..215b8eeb37c 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 0d05508e7b6..0639b17df6c 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 d86afcbc15a..c404579a2ad 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 = ['''