use title as db key

This commit is contained in:
Malin Freeborn 2025-02-13 03:52:15 +01:00
parent 4250f619c3
commit 0abc2818e8
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
4 changed files with 6 additions and 5 deletions

View File

@ -36,14 +36,15 @@ $(databases): .dbs/%.rec: %/
done > $@
for entry in $(shell find $< -type f -name "*.md"); do \
recset $@ -e "file = '$${entry}'" -f wordcount --set-add="$$(wc -w < $${entry})" ;\
recset $@ -e "file = '$${entry}'" -f contents --set-add="$$($(spill_contents) $${entry})" ;\
recset $@ -e "file = '$${entry}'" -f content --set-add="$$($(spill_contents) $${entry})" ;\
done
db.rec: $(databases)
printf '%s\n' '%rec: guide' > $@
printf '%s\n' '%key: title' >> $@
printf '%s\n' '%type: wordcount int' >> $@
printf '%s\n\n' '%sort: title' >> $@
cat $^ >> $@
recsel $^ >> $@
recsel $@ -e "requires != ''" -CR title,requires |\
while read title requires; do \
IFS=', ' && for provider in $$requires; do \

View File

@ -1,5 +1,5 @@
---
title: "git"
title: "git subtree"
tags: [ "data", "git", "subtree" ]
---

View File

@ -1,5 +1,5 @@
---
title: "gpg"
title: "gpg with vim"
tags: [ "vim", "data", "GPG" ]
requires: [ "GPG Basics", "vim basics" ]
---

View File

@ -1,5 +1,5 @@
---
title: "Makefiles"
title: "make help target"
tags: [ "system", "make", "help" ]
---