From fb0ede0be0aed59ed5960166a3be4ebac3e37d0b Mon Sep 17 00:00:00 2001 From: Felix Zwettler Date: Fri, 18 Aug 2023 11:03:16 +0200 Subject: [PATCH] improve scripts output --- build-aux/cargo_build.py | 8 ++++---- build-aux/inno_build.py | 2 +- build-aux/meson_post_install.py | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build-aux/cargo_build.py b/build-aux/cargo_build.py index d18a417987..5fca7ef271 100644 --- a/build-aux/cargo_build.py +++ b/build-aux/cargo_build.py @@ -12,7 +12,7 @@ output_file = sys.argv[7] print(f""" -### executing cargo_build.py with arguments: ### +### executing cargo build script with arguments: ### project_build_root: {project_build_root} project_src_root: {project_src_root} cargo_env: {cargo_env} @@ -28,13 +28,13 @@ print(cargo_call, file=sys.stderr) res = os.system(cargo_call) if res != 0: - print(f"cargo call failed, code {res}") + print(f"cargo call failed, code {res}", file=sys.stderr) sys.exit(1) print(cp_call, file=sys.stderr) res = os.system(cp_call) if res != 0: - print(f"cp call failed, code {res}") + print(f"cp call failed, code {res}", file=sys.stderr) sys.exit(1) -sys.exit(0) +print("### cargo build script finished ###", file=sys.stderr) diff --git a/build-aux/inno_build.py b/build-aux/inno_build.py index 589dc07c68..bdb99936d5 100644 --- a/build-aux/inno_build.py +++ b/build-aux/inno_build.py @@ -117,4 +117,4 @@ def run_command(command, error_message): "Running ISCC failed" ) -sys.exit(0) +print("### Inno-Setup installer build script finished ###", file=sys.stderr) diff --git a/build-aux/meson_post_install.py b/build-aux/meson_post_install.py index ed7769cb22..c8a10ee282 100644 --- a/build-aux/meson_post_install.py +++ b/build-aux/meson_post_install.py @@ -4,7 +4,7 @@ import os from subprocess import call -print("--- entering post-install script ---", file=sys.stderr) +print("### executing post-install script ###", file=sys.stderr) datadir = sys.argv[1] bindir = sys.argv[2] @@ -35,3 +35,5 @@ call(["fc-cache.exe", "-v", "-f"]) else: print(f"[WARNING] \"meson_post_install.py\" is not configured to run on platform: {sys.platform}", file=sys.stderr) + +print("### post-install script finished ###", file=sys.stderr)