From 72df0de8cb579fd96449d19eb57fc71335907a19 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 22 May 2022 23:35:02 +0300 Subject: add @file info to all files + Next step, start documenting contents of each file. --- scripts/warn-undocumented | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/warn-undocumented (limited to 'scripts/warn-undocumented') diff --git a/scripts/warn-undocumented b/scripts/warn-undocumented new file mode 100755 index 0000000..78f1401 --- /dev/null +++ b/scripts/warn-undocumented @@ -0,0 +1,6 @@ +#!/bin/sh +# look through all files for either @file or \file, grep -c will report +# ./example.file:0 if it is not found. +find arch lib common include -iname '*.[ch]' -exec \ + grep -c '[@\]file' {} \+ \ + | awk -F':' '$2 == 0 {print "Undocumented file:", $1}' -- cgit v1.3