mirror of
https://github.com/mroi/apple-internals.git
synced 2026-08-24 12:12:32 +02:00
Makefile: add review target
displays a random line from the internals document for review
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user