summaryrefslogtreecommitdiffstats
path: root/extract-copyright-comments
diff options
context:
space:
mode:
Diffstat (limited to 'extract-copyright-comments')
-rwxr-xr-xextract-copyright-comments8
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