summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-03-26 11:22:21 -0700
committerMathias Preiner <mathias.preiner@gmail.com>2019-03-26 11:22:21 -0700
commit20569472704deb899d577be7800ec902e5883fa5 (patch)
treef56626edb1aa1724107b455139c79ef20059d27a /contrib
parent3606045186bffa81b292a5299c5a5d6fd7e0b68f (diff)
get-authors: Exclude empty lines.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/get-authors3
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' | \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback