diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-05-29 21:49:39 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-05-29 21:49:39 +0300 |
| commit | 32f9719e29762001f73460acd31f2a6da8fd6298 (patch) | |
| tree | 61605ebc344dc8d1fd957d920d15dcaee6cee669 /scripts/warn-undocumented | |
| parent | 4e52c518e35dfb6986efff67fb2fa82857de06c8 (diff) | |
| download | gran-32f9719e29762001f73460acd31f2a6da8fd6298.tar.gz gran-32f9719e29762001f73460acd31f2a6da8fd6298.zip | |
silence some trivial warnings
Diffstat (limited to 'scripts/warn-undocumented')
| -rwxr-xr-x | scripts/warn-undocumented | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/warn-undocumented b/scripts/warn-undocumented index f1367bd..db22249 100755 --- a/scripts/warn-undocumented +++ b/scripts/warn-undocumented @@ -1,6 +1,7 @@ #!/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}' +# look through all files for either @file or \file +for file in $@ +do + grep -c '[@\]file' "$file" |\ + awk -F':' "\$1 == 0 {print \"Undocumented file: $file\"}" +done |
