summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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