From ffe0f40ea1962e9c4895e2ae737411151b848ae5 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Tue, 20 Aug 2024 18:46:47 +0300 Subject: [PATCH] use directory `bin` instead of `build` --- .gitignore | 4 ++-- bytebeat_compiler.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6ba3514..4eaafe7 100644 --- a/.gitignore +++ b/.gitignore @@ -52,6 +52,6 @@ Module.symvers Mkfile.old dkms.conf -# ---> products -build/ +# ---> Program output +bin/ *.wav diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index a481916..14619c7 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -18,7 +18,7 @@ BITS_PER_BYTE = 8 # Paths PATHS = { "src_dir": "src", - "build_dir": "build", + "bin_dir": "bin", "template": "template.c", "substitute": "substituted.c", "output": "render_bytebeat", @@ -29,8 +29,8 @@ PATHS = { # Resolve paths PATHS["template"] = path_join(PATHS["src_dir"], PATHS["template"]) -PATHS["substitute"] = path_join(PATHS["build_dir"], PATHS["substitute"]) -PATHS["output"] = path_join(PATHS["build_dir"], PATHS["output"]) +PATHS["substitute"] = path_join(PATHS["bin_dir"], PATHS["substitute"]) +PATHS["output"] = path_join(PATHS["bin_dir"], PATHS["output"]) PATHS["fwrite_le"] = path_join(PATHS["src_dir"], PATHS["fwrite_le"]) # Add `.` directory before all paths for compilation @@ -173,7 +173,7 @@ if __name__ == "__main__": raise SystemExit # - Compilation - makedirs(PATHS["build_dir"], exist_ok=True) + makedirs(PATHS["bin_dir"], exist_ok=True) if not args.no_return: # Insert `return` statement # XXX: The bytebeat code is enclosed in parentheses to allow for the