diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-06 09:09:36 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-06 15:13:19 (EST) |
commit | c904153928f806667932d3c253c56de9d14a02db (patch) | |
tree | 2c479c6aefb92328ab66fd9ac2884262ab2dbd4c /extract-copyright-comments | |
parent | 98d47d4c353f06cd289f9477014e97473789d84d (diff) |
extract-copyright-comments: Add more search words
Diffstat (limited to 'extract-copyright-comments')
-rwxr-xr-x | extract-copyright-comments | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extract-copyright-comments b/extract-copyright-comments index b65f91f..0b26731 100755 --- a/extract-copyright-comments +++ b/extract-copyright-comments @@ -60,7 +60,9 @@ extract_cxx_comment() esac done - if printf '%s' "${comment}" | grep -Eqi 'copyright|\(c\)'; then + if printf '%s' "${comment}" | grep -Eqi \ + 'copyright|\(c\)|author|written|license|public domain' + then printf '\t%s\n' "${indent}${comment}" fi @@ -98,7 +100,9 @@ extract_c_comment() esac done - if printf '%s' "${comment}" | grep -Eqi 'copyright|\(c\)'; then + if printf '%s' "${comment}" | grep -Eqi \ + 'copyright|\(c\)|author|written|license|public domain' + then printf '%s\n' "${indent}${comment}" | sed 's/^/\t/' fi |