summaryrefslogtreecommitdiff
path: root/tools/update-copyright.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-02 21:40:08 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-02 21:40:08 +0300
commit2d2bbb2fe5a0dc55cbf5b9616a78500704b6ea65 (patch)
tree4c71f2363cf553cbc634e8e786fcac7c8e5f6014 /tools/update-copyright.sh
parentadcfcee89317a5c2742f2825bce4e9fb34739581 (diff)
downloadplus-2d2bbb2fe5a0dc55cbf5b9616a78500704b6ea65.tar.gz
plus-2d2bbb2fe5a0dc55cbf5b9616a78500704b6ea65.tar.bz2
plus-2d2bbb2fe5a0dc55cbf5b9616a78500704b6ea65.tar.xz
plus-2d2bbb2fe5a0dc55cbf5b9616a78500704b6ea65.zip
Update copyright year in .cc files.
Diffstat (limited to 'tools/update-copyright.sh')
-rwxr-xr-xtools/update-copyright.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/update-copyright.sh b/tools/update-copyright.sh
index 4ae1ebcbb..1a0af938b 100755
--- a/tools/update-copyright.sh
+++ b/tools/update-copyright.sh
@@ -12,7 +12,7 @@ tmp_file="w$RANDOM$RANDOM$RANDOM$RANDOM"
[[ -e $tmp_file ]] && tmp_file="w$RANDOM$RANDOM$RANDOM$RANDOM"
# update the dates, creating the interval if it doesn't exist yet
-find -iname "*.cpp" -or -iname "*.h" -or -iname "*.hpp" -or -iname "*.inc" |
+find -iname "*.cpp" -or -iname "*.h" -or -iname "*.hpp" -or -iname "*.inc" -or -iname "*.cc" |
xargs sed -i "/Copyright.*The ManaPlus Developers/ s,\(20[0-9]*\) \|\(20[0-9]*\)-20[0-9]* ,\1\2-$new_year ,"
# do a semi-automated commit check