aboutsummaryrefslogtreecommitdiff
path: root/copyright
diff options
context:
space:
mode:
Diffstat (limited to 'copyright')
-rwxr-xr-xcopyright14
1 files changed, 11 insertions, 3 deletions
diff --git a/copyright b/copyright
index 7bcb308..14e439e 100755
--- a/copyright
+++ b/copyright
@@ -71,13 +71,21 @@ for f in "${files[@]}"; do
info "processing $f"
- sed -i -re "s/(Copyright \(c\) [0-9]+)-$old (Code Synthesis)/\1-$new \2/" "$f"
+ sed -i \
+ -re "s%(Copyright \(c\) [0-9]+)-$old (Code Synthesis)%\1-$new \2%" \
+ -re "s%(© [0-9]+)-$old (Code Synthesis)%\1-$new \2%" \
+ -re "s%(&#169; [0-9]+)-$old (<a href=\"http://(www.)?codesynthesis.com\")%\1-$new \2%" \
+ "$f"
# Grep for matching copyrights that didn't end with $old (or have other
# discrepancies like single year only, etc).
#
- grep -vE "Copyright \(c\) [0-9]+-$new (Code Synthesis)" "$f" | \
- grep -iE --color=auto "Copyright.*Code Synthesis" || true
+ grep -vE \
+ -e "Copyright \(c\) [0-9]+-$new Code Synthesis" \
+ -e "&#169; [0-9]+-$new Code Synthesis" \
+ -e "&#169; [0-9]+-$new <a href=\"http://(www.)?codesynthesis.com\"" \
+ "$f" | \
+ grep -iE --color=auto "Copyright.*Code Synthesis" || true
# Grep for the old year (for review).
#