Skip to content

Commit

Permalink
improve scripts output
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Aug 18, 2023
1 parent 2d249be commit fb0ede0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build-aux/cargo_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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)
2 changes: 1 addition & 1 deletion build-aux/inno_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 3 additions & 1 deletion build-aux/meson_post_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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)

0 comments on commit fb0ede0

Please sign in to comment.