From bfebab9957c63d460874d3ec8f6100f9b49de080 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 10 Jul 2021 23:26:20 +0000 Subject: Whack some URLs to match cgit naming scheme --- GNUmakefile | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) mode change 120000 => 100644 GNUmakefile (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile deleted file mode 120000 index 326927d..0000000 --- a/GNUmakefile +++ /dev/null @@ -1 +0,0 @@ -tools/GNUmakefile \ No newline at end of file diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..9e51aeb --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,31 @@ +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 -- cgit v1.2.3