aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.org7
-rw-r--r--build-aux/build-home-page.el14
2 files changed, 21 insertions, 0 deletions
diff --git a/README.org b/README.org
index 1954a1c..0c64228 100644
--- a/README.org
+++ b/README.org
@@ -10,6 +10,13 @@ HTTP handler to implement a HTTP GraphQL endpoint.
* Download
+Download release tarballs.
+
+#+BEGIN: releases
+#+END:
+
+Download [[https://systemreboot.net/files/misc/arunisaac.pub][public signing key]].
+
Browse the [[https://git.systemreboot.net/kolam][development version]] of kolam hosted in a git repository.
* Portability
diff --git a/build-aux/build-home-page.el b/build-aux/build-home-page.el
index ac55bf9..e005756 100644
--- a/build-aux/build-home-page.el
+++ b/build-aux/build-home-page.el
@@ -35,6 +35,20 @@
org-html-head-include-scripts nil
org-html-postamble nil)
+(defun org-dblock-write:releases (params)
+ "Dynamically write releases block."
+ (call-process "git" nil t nil
+ "for-each-ref" "--sort=-taggerdate"
+ (let ((release-file "./releases/kolam-%(refname:short).tar.lz"))
+ (format "--format=- %%(taggerdate:short) [[%s][%s]] [[%s.asc][GPG Signature]]"
+ release-file
+ (file-name-nondirectory release-file)
+ release-file))
+ "refs/tags/v*")
+ ;; Fix tarball filenames.
+ (replace-string "kolam-v" "kolam-" nil nil nil t))
+
(defun build-website ()
(with-current-buffer (find-file "README.org")
+ (org-update-all-dblocks)
(org-export-to-file 'html "website/index.html")))