summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-08-18 09:40:34 +0300
committerArtur Signell <artur@vaadin.com>2016-08-18 09:40:40 +0300
commit588f3cc7f8f719a6bd38b4c196fce80c8040b44c (patch)
tree9d7eedbe6ea68442297433e09d46bf1c57335da8 /scripts
parenteeffa805a212ebb25c4af18db1e927b23a3ad66a (diff)
downloadvaadin-framework-588f3cc7f8f719a6bd38b4c196fce80c8040b44c.tar.gz
vaadin-framework-588f3cc7f8f719a6bd38b4c196fce80c8040b44c.zip
Update copyright year to 2016
Change-Id: I6485dee1ebba12b180a9063ed4b530f7dc63cd77
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/updateCopyrightYear.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/updateCopyrightYear.sh b/scripts/updateCopyrightYear.sh
new file mode 100755
index 0000000000..fee4d6aae8
--- /dev/null
+++ b/scripts/updateCopyrightYear.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. `dirname $0`/sed.sh
+
+rootdir=`dirname $0`/..
+year=$(date +%Y)
+old=$(grep Copyright checkstyle/header|sed "s/^ . //")
+new=$(echo $old|sed "s/2000-[^ ]* /2000-$year /")
+
+echo "Changing '$old' to '$new'"
+
+$SED -i "s/$old/$new/" checkstyle/header
+
+for javaFile in `find $rootdir -name "*.java"`
+do
+ $SED -i "s/$old/$new/" $javaFile
+done