emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/hyperdrive 727f1b4b14 2/4: Chore/Fix: Replace new build-re


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 727f1b4b14 2/4: Chore/Fix: Replace new build-readme.el with a make target
Date: Thu, 16 May 2024 16:00:01 -0400 (EDT)

branch: elpa/hyperdrive
commit 727f1b4b145c777dc5080312b08dc2c8d019a591
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Chore/Fix: Replace new build-readme.el with a make target
    
    Without extra steps, such maintenance scripts end up being treated as
    libraries by the tools used to build Emacs packages.
---
 .builds/readme.yml | 2 +-
 Makefile           | 4 ++++
 build-readme.el    | 5 -----
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/.builds/readme.yml b/.builds/readme.yml
index 66c061340d..dd0f0bede7 100644
--- a/.builds/readme.yml
+++ b/.builds/readme.yml
@@ -8,5 +8,5 @@ sources:
 tasks:
   - update-readme: |
       cd hyperdrive.el
-      emacs -Q --script build-readme.el
+      make README.html
       hut git update --readme README.html
diff --git a/Makefile b/Makefile
index 4aa949dbdd..66523bf614 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,10 @@ TEXI2INFO := makeinfo
 %.info: %.texi
        $(TEXI2INFO) -o $@ $<
 
+README.html: README.org
+       $(BATCH) --find-file $< --eval "(require 'ox-html)" \
+         --eval '(org-html-export-to-html)'
+
 doc/hyperdrive.texi: doc/hyperdrive.org
        $(BATCH) --find-file $< --eval "(require 'ox-texinfo)" \
                             --eval '(org-texinfo-export-to-texinfo)'
diff --git a/build-readme.el b/build-readme.el
deleted file mode 100644
index 650ac2acc0..0000000000
--- a/build-readme.el
+++ /dev/null
@@ -1,5 +0,0 @@
-(require 'org)
-(require 'ox-html)
-(with-temp-buffer
-  (insert-file-contents "README.org")
-  (org-export-to-file 'html "README.html" nil nil nil t))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]