I hereby claim:
- I am jstruzik on github.
- I am jstruzik (https://keybase.io/jstruzik) on keybase.
- I have a public key ASAy-45ftEDyXos5Rwee-5-35ZDa6_AX3QP3z803FvL7xwo
To claim this, I am signing this object:
#!/bin/sh | |
readonly FILES=$(git diff --diff-filter=ACMRTUXB --cached --name-only) | |
readonly CURRENT_YEAR=$(date +"%Y") | |
for f in $FILES; do | |
head -10 $f | grep -i copyright 2>&1 1>/dev/null || continue | |
if ! grep -i -e "copyright.*$CURRENT_YEAR" $f 2>&1 1>/dev/null; then | |
INVALID_FILES="$INVALID_FILES $f" |
I hereby claim:
To claim this, I am signing this object:
git diff --diff-filter=ACMRTUXB --name-only branch_to_compare | xargs sed -i '' -E 's/@copyright [0-9]{4}/@copyright `date "+%Y"`/g' |