summaryrefslogtreecommitdiff
path: root/build.py3
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-09-28 06:04:45 -0400
committerMica White <botahamec@outlook.com>2026-09-28 06:04:45 -0400
commit231833f629d11964ba09372026625ee35b9769db (patch)
treea1ca905fb9c9b3b4a8f04ba6ad061b01d5afeb4c /build.py3
parent6d7bc550fba4c188d262cade1cbf91bd1d0ab809 (diff)
Better aesthetic
Diffstat (limited to 'build.py3')
-rwxr-xr-xbuild.py36
1 files changed, 5 insertions, 1 deletions
diff --git a/build.py3 b/build.py3
index 8adc039..2a9e529 100755
--- a/build.py3
+++ b/build.py3
@@ -3,6 +3,7 @@
import gzip
import os
import shutil
+import sys
import brotli
@@ -21,7 +22,10 @@ def compile_all(path: str, target: str):
os.mkdir(os.path.join(target, file))
compile_all(src, os.path.join(target, file))
elif ext == '.kuht':
- os.system(f"kuht {src} src/base.kuht -o {target}/{base}.html")
+ print(f"Building {src}")
+ exit_code = os.system(f"kuht {src} src/base.kuht -o {target}/{base}.html")
+ if exit_code != 0:
+ sys.exit(exit_code)
def move_css(path: str):