diff options
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 |
