summaryrefslogtreecommitdiff
path: root/build.py3
diff options
context:
space:
mode:
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):