aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/generate-tasks-and-bugs.sh21
-rwxr-xr-xbuild-aux/with-container.sh3
2 files changed, 24 insertions, 0 deletions
diff --git a/build-aux/generate-tasks-and-bugs.sh b/build-aux/generate-tasks-and-bugs.sh
new file mode 100755
index 0000000..1788c18
--- /dev/null
+++ b/build-aux/generate-tasks-and-bugs.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -eux
+
+mkdir -p public
+
+cat build-aux/workflow/vendor/org.css build-aux/workflow/workflow.css > public/styles.css
+
+sed -e '/^\* Tasks$/,/^\* Improvements$/!d' TODOs.org | \
+ head -n -1 | \
+ cat build-aux/workflow/preamble.org - > tasks-and-bugs.org
+
+emacs tasks-and-bugs.org \
+ -l build-aux/workflow/vendor/htmlize.el \
+ --eval '(setq org-export-allow-bind-keywords t)' \
+ -f org-html-export-to-html \
+ --batch \
+ --kill
+
+# Add anchor link to bug headers
+perl -pe \
+ 's|^<h3 id="(.*?)">(.*)</h3>$|<h3 id="\1">\2<br /><a class="header-anchor" href="#\1">#\1</a></h3>|' \
+ tasks-and-bugs.html > public/tasks-and-bugs.html
diff --git a/build-aux/with-container.sh b/build-aux/with-container.sh
new file mode 100755
index 0000000..cff282f
--- /dev/null
+++ b/build-aux/with-container.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -eux
+
+guix time-machine -C guix/pinned-channels.scm -- environment --pure -C -m guix/manifest.scm -- sh -c "$@"