summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2021-07-10 23:26:20 +0000
committerRob Austein <sra@hactrn.net>2021-07-10 23:26:20 +0000
commitbfebab9957c63d460874d3ec8f6100f9b49de080 (patch)
treef0e5a33da5aa880351065b1e9d227be3f36d4349 /GNUmakefile
parent019a6cd5cfa533b53346d0c38f939198f214667d (diff)
Whack some URLs to match cgit naming scheme
Diffstat (limited to 'GNUmakefile')
-rw-r--r--[l---------]GNUmakefile32
1 files changed, 31 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 326927d..9e51aeb 120000..100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1 +1,31 @@
-tools/GNUmakefile \ No newline at end of file
+HERE := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
+
+SOURCE_URL := https://git.cryptech.is/
+SOURCE_TRAC_DB := bikeshed.cryptech.is:/home/trac/db/trac.db
+SOURCE_TRAC_ATTACHMENTS := bikeshed.cryptech.is:/home/trac/files/attachments
+
+REPO_HOST := bikeshed.cryptech.is
+REPO_PATH := /usr/local/git/repositories
+
+
+all:
+ tools/extract.py --source-url ${SOURCE_URL}
+ ./kludges.py
+ cd pelican; pelican --output website --settings pelicanconf.py --fatal errors content
+
+fetch:
+ rsync -aP --delete ${SOURCE_TRAC_DB} ${SOURCE_TRAC_ATTACHMENTS} .
+ ssh -n ${REPO_HOST} 'sudo find ${REPO_PATH} -name "*.git"' | \
+ sed s=${REPO_PATH}/== | sort | jq -Rn '[inputs]' >repositories.json
+
+clean:
+ rm -rf wiki pelican
+
+distclean: clean
+ rm -rf trac.db attachments
+
+webfsd:
+ @echo http://$$(hostname):8000/
+ webfsd -r pelican/website -4 -L - -F -f index.html
+
+.PHONY: all clean fetch distclean webfsd