diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-30 16:03:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-30 16:03:55 +0300 |
| commit | 191eaea25cf569ad9c5fb12b8755ae6400750e58 (patch) | |
| tree | a0cd14f4a772da01b445355eb35eec54616d01ec /scripts/warn-undocumented | |
| download | gran-191eaea25cf569ad9c5fb12b8755ae6400750e58.tar.gz gran-191eaea25cf569ad9c5fb12b8755ae6400750e58.zip | |
initial
Diffstat (limited to 'scripts/warn-undocumented')
| -rwxr-xr-x | scripts/warn-undocumented | 6 |
1 files changed, 6 insertions, 0 deletions
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}' |
