diff options
-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). # |