diff options
| author | Christian Cleberg <[email protected]> | 2026-03-23 11:24:44 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-23 11:24:44 -0500 |
| commit | 7159f3c1bfc61ef36f3dc60396a155280cbfa536 (patch) | |
| tree | 03dbf057d55e8e6d2914a17157f89d06d568a2c3 /build.py | |
| parent | bf27b6228f0b62be57334eda54012c55ab7c2567 (diff) | |
| download | cleberg.net-7159f3c1bfc61ef36f3dc60396a155280cbfa536.tar.gz cleberg.net-7159f3c1bfc61ef36f3dc60396a155280cbfa536.tar.bz2 cleberg.net-7159f3c1bfc61ef36f3dc60396a155280cbfa536.zip | |
attempt to fix builds
Diffstat (limited to 'build.py')
| -rw-r--r-- | build.py | 29 |
1 files changed, 11 insertions, 18 deletions
@@ -247,26 +247,19 @@ def minify_html(src_html, dest_html): def run_emacs_publish(dev_mode=True): - if dev_mode: - print("Running Emacs publish script (development)...") - result = subprocess.run( - ["emacs", "--script", "publish.el"], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - text=True, - ) - else: - print("Running Emacs publish script (production)...") - result = subprocess.run( - ["emacs", "--script", "publish.el"], - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL, - text=True, - ) + mode = "development" if dev_mode else "production" + print(f"Running Emacs publish script ({mode})...") + + result = subprocess.run( + ["emacs", "--script", "publish.el"], + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + text=True, + ) if result.returncode != 0: - print("Error running publish.el:") - print(result.stderr, file=sys.stderr) + print("Error running publish.el output:") + print(result.stdout) sys.exit(1) annoying_file = Path(".build/cleberg-net.html") |
