From c904153928f806667932d3c253c56de9d14a02db Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 06 Dec 2020 09:09:36 -0500 Subject: extract-copyright-comments: Add more search words --- 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 -- cgit v0.9.1