#!/usr/bin/env bash
set -xe
NEW_DATE=$(date "+%Y")
OLD_DATE=$(date -d '1 year ago' "+%Y")
find . \( -type d -name .git -prune \) \( -type d -name ._build -prune \) -o -type f -print0 | xargs -0 sed -i 's/(C) '${OLD_DATE}'/(C) '${NEW_DATE}'/g'