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

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

[elpa] elpa-admin cff34fa 336/357: Support generating readme.html from R


From: Stefan Monnier
Subject: [elpa] elpa-admin cff34fa 336/357: Support generating readme.html from README
Date: Thu, 10 Dec 2020 18:07:10 -0500 (EST)

branch: elpa-admin
commit cff34fa3f4e999c959f84a02668b4bd3ed431165
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Support generating readme.html from README
    
    * GNUmakefile (readme): Add new target 'readme'.
    * .gitignore: Ignore html/readme.html.
---
 GNUmakefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/GNUmakefile b/GNUmakefile
index 5fddd39..2c02917 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -96,6 +96,12 @@ org-fetch: archive-tmp
 clean:
        rm -rf archive $(ARCHIVE_TMP) $(SITE_DIR)
 
+.PHONY: readme
+readme:
+       $(EMACS) --eval "(progn (require 'org) \
+                         (find-file \"README\")\
+                         (org-export-to-file 'html \"html/readme.html\"))"
+
 ########## Rules for in-place installation ####################################
 pkgs := $(foreach pkg, $(wildcard packages/*), \
           $(if $(shell [ -d "$(pkg)" ] && echo true), $(pkg)))



reply via email to

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