Created
September 3, 2017 18:37
-
-
Save marcelometal/d4ac2281ef26f2fa755a3acf3121d98b to your computer and use it in GitHub Desktop.
Tsuru: Fixed copyright notice year
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fixed copyright notice year | |
# | |
# The date should be the date of first publication | |
for FILE in $(find . -type f); do | |
YEAR=$(git log --format="%ci" --diff-filter=A -- $FILE | cut -d "-" -f 1); | |
sed -i "s#Copyright [0-9]* tsuru authors#Copyright $YEAR tsuru authors#g" $FILE; | |
echo "$YEAR: $FILE"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment