diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-05 18:52:20 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-05 18:52:20 +0300 |
commit | 8be7ccbbf602c30c453d03ce75c31722edb53dbd (patch) | |
tree | 30ad20904bfb864131f823987c4a1d95908eeb97 /copyright | |
parent | 8aef14fdf5f32aefcc9b0091bdae3ae4a3d4d43e (diff) |
Add patterns for xhtml files into copyright script
Diffstat (limited to 'copyright')
-rwxr-xr-x | copyright | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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%(© [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 "© [0-9]+-$new Code Synthesis" \ + -e "© [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). # |