Makefile: add review target

displays a random line from the internals document for review
This commit is contained in:
Michael Roitzsch
2026-07-27 10:09:12 +02:00
parent 60249c1a91
commit 248e68524b
+4 -1
View File
@@ -5,7 +5,7 @@ CHECK_TARGETS = check_files check_binaries check_manifests check_services
SHELL = caffeinate sh
.PHONY: all check view sqlite $(DB_TARGETS) $(CHECK_TARGETS)
.PHONY: all check review view sqlite $(DB_TARGETS) $(CHECK_TARGETS)
.INTERMEDIATE: $(DB)
all: $(DB).lz check
@@ -34,6 +34,9 @@ check: internals.tsv
@(head --lines=1 ; LANG=en sort --ignore-case) < $< | diff -uw $< -
@$(MAKE) --silent --jobs=1 $(CHECK_TARGETS)
review: internals.tsv
@sed 1d $< | sort -R | head -n1
define VIEW
SELECT path,os FROM files WHERE restricted IS NULL;
SELECT path,os,'restricted' FROM files WHERE restricted;