aboutsummaryrefslogtreecommitdiff
path: root/copyright
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-06-05 18:52:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-06-05 18:52:20 +0300
commit8be7ccbbf602c30c453d03ce75c31722edb53dbd (patch)
tree30ad20904bfb864131f823987c4a1d95908eeb97 /copyright
parent8aef14fdf5f32aefcc9b0091bdae3ae4a3d4d43e (diff)
Add patterns for xhtml files into copyright script
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%(&#169; [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).
#