summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2021-02-14 00:51:25 +0000
committerRob Austein <sra@hactrn.net>2021-02-14 00:52:58 +0000
commitdc6ef096698dcd18d1755a45d79d0b87368a6ce6 (patch)
treeddf9d25e83de7109c78f7177db128a96516ab8dd /GNUmakefile
parent13d0f55865f8b1b851ce1e84597b144c5fd41662 (diff)
rsync fresh sql and attachments and work from that, without Trac itself
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..019a783
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,19 @@
+TRAC := $(shell find raw-wiki-dump -type f -name '*.trac')
+OUT := ${TRAC:.trac=.md} TAGS
+TOOL := tools/trac2md.py
+
+all: ${OUT}
+
+fetch:
+ rsync -aP --delete bikeshed.cryptech.is:/home/trac/db/trac.db bikeshed.cryptech.is:/home/trac/files/attachments .
+
+clean:
+ rm ${OUT}
+
+TAGS: ${TRAC}
+ etags -l none $^
+
+%.md: %.trac GNUmakefile ${TOOL}
+ ${TOOL} $<
+
+.PHONY: all clean fetch