aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-23 11:24:44 -0500
committerChristian Cleberg <[email protected]>2026-03-23 11:24:44 -0500
commit7159f3c1bfc61ef36f3dc60396a155280cbfa536 (patch)
tree03dbf057d55e8e6d2914a17157f89d06d568a2c3 /build.py
parentbf27b6228f0b62be57334eda54012c55ab7c2567 (diff)
downloadcleberg.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.py29
1 files changed, 11 insertions, 18 deletions
diff --git a/build.py b/build.py
index 8421ed3..fdcbf9d 100644
--- a/build.py
+++ b/build.py
@@ -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")