diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2019-03-26 11:22:21 -0700 |
---|---|---|
committer | Mathias Preiner <mathias.preiner@gmail.com> | 2019-03-26 11:22:21 -0700 |
commit | 20569472704deb899d577be7800ec902e5883fa5 (patch) | |
tree | f56626edb1aa1724107b455139c79ef20059d27a /contrib/get-authors | |
parent | 3606045186bffa81b292a5299c5a5d6fd7e0b68f (diff) |
get-authors: Exclude empty lines.
Diffstat (limited to 'contrib/get-authors')
-rwxr-xr-x | contrib/get-authors | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/get-authors b/contrib/get-authors index d2bd1e7f5..d70e0ecda 100755 --- a/contrib/get-authors +++ b/contrib/get-authors @@ -41,9 +41,10 @@ while [ $# -gt 0 ]; do # (1) #include # (2) namespace # (3) } ... namespace ... + # (4) empty lines # awk -F ')' \ - '$2 !~ /^[ \t]*(#include|namespace|}.*namespace.*)/ {print $1}' | \ + '$2 !~ /^[ \t]*(#include|namespace|}.*namespace.*|[ \t]*$)/ {print $1}' | \ # Keep author names only, remove the last 4 columns in ( ... ) awk 'NF{NF-=4};1' | \ |