From 422b6c976e28445d2a6e14586fa416b0f16c093f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 24 Jun 2023 20:48:32 +0300 Subject: initial commit --- 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..f1367bd --- /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 src -iname '*.[ch]' -exec \ + grep -c '[@\]file' {} \+ \ + | awk -F':' '$2 == 0 {print "Undocumented file:", $1}' -- cgit v1.3