summaryrefslogtreecommitdiff
path: root/tools/update-copyright.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-02 18:44:18 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-02 18:44:18 +0300
commita65d9da124346f6cec0ac679c689bf6dd0ce34e8 (patch)
tree773780630722f44aba14cc783c218a390243a849 /tools/update-copyright.sh
parent1affb49abf69dc43e38219577c6ae54371f21e0e (diff)
downloadmanaverse-a65d9da124346f6cec0ac679c689bf6dd0ce34e8.tar.gz
manaverse-a65d9da124346f6cec0ac679c689bf6dd0ce34e8.tar.bz2
manaverse-a65d9da124346f6cec0ac679c689bf6dd0ce34e8.tar.xz
manaverse-a65d9da124346f6cec0ac679c689bf6dd0ce34e8.zip
Update copyrights year.
Diffstat (limited to 'tools/update-copyright.sh')
-rwxr-xr-xtools/update-copyright.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/update-copyright.sh b/tools/update-copyright.sh
index 9a340e311..4ae1ebcbb 100755
--- a/tools/update-copyright.sh
+++ b/tools/update-copyright.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright (C) 2001-2010 Wormux Team.
# Copyright (C) 2010 The ManaWorld Development Team.
-# Copyright (C) 2012-2015 The ManaPlus Developers.
+# Copyright (C) 2012-2016 The ManaPlus Developers.
new_year="$1"
[[ -z $new_year ]] && echo "Missing parameter: year" && exit 1
@@ -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" |
+find -iname "*.cpp" -or -iname "*.h" -or -iname "*.hpp" -or -iname "*.inc" |
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