From 248e68524b56aada903e6534f141481f97a53f9a Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Mon, 27 Jul 2026 10:09:12 +0200 Subject: [PATCH] Makefile: add review target displays a random line from the internals document for review --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e11f417..5950fda 100644 --- a/Makefile +++ b/Makefile @@ -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;