From c18b4ad0e4ac4cb05f52e117da58c0362997b349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Wed, 6 Oct 2021 23:10:25 +0200 Subject: [PATCH] adjust build script and Makefile --- Makefile | 4 ++++ build.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9139457 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +.PHONY: build + +build: + python3 build.py diff --git a/build.py b/build.py index ff14ab9..633957b 100644 --- a/build.py +++ b/build.py @@ -6,12 +6,12 @@ from package_formatter import PackageFormatter from replacements import make_default_commands def build(build_dir: str): - input_root = Path('.').resolve() + input_root = Path('./packages').resolve() output = input_root / build_dir for file in input_root.rglob('*.pysty'): formatter = PackageFormatter(package_name=file.with_suffix('').name) make_default_commands(formatter) - formatter.format_package(file, input_root / build_dir / str(file.parent.relative_to(input_root))) + formatter.format_package(file, Path('./').resolve() / build_dir / str(file.parent.relative_to(input_root))) if __name__ == "__main__": build('build')