diff options
author | Artur Signell <artur@vaadin.com> | 2016-08-18 09:40:34 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-18 09:40:40 +0300 |
commit | 588f3cc7f8f719a6bd38b4c196fce80c8040b44c (patch) | |
tree | 9d7eedbe6ea68442297433e09d46bf1c57335da8 /scripts | |
parent | eeffa805a212ebb25c4af18db1e927b23a3ad66a (diff) | |
download | vaadin-framework-588f3cc7f8f719a6bd38b4c196fce80c8040b44c.tar.gz vaadin-framework-588f3cc7f8f719a6bd38b4c196fce80c8040b44c.zip |
Update copyright year to 2016
Change-Id: I6485dee1ebba12b180a9063ed4b530f7dc63cd77
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/updateCopyrightYear.sh | 17 |
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 |