2015-05-07 02:44:31 +02:00
|
|
|
#! /bin/sh
|
|
|
|
# Update the copyright year in the boilerplate at the top of the files.
|
2015-05-08 07:05:10 +02:00
|
|
|
#
|
|
|
|
test -r "src/net/sf/freecol/FreeCol.java" \
|
|
|
|
|| (echo "Run from a FreeCol git directory" ; exit 1)
|
|
|
|
|
2015-05-07 02:44:31 +02:00
|
|
|
Y=`date +%Y`
|
2015-05-08 07:05:10 +02:00
|
|
|
sed -i -e "s/\(copyright 2...--\)2.../\1$Y/" doc/FreeCol.tex
|
|
|
|
find ./data ./schema ./src ./packaging ./test \
|
2015-05-07 02:44:31 +02:00
|
|
|
-type f \
|
2015-05-08 07:05:10 +02:00
|
|
|
-a \( -name \*.java -o -name \*.xml -o -name \*.xsd -o -name copyright \
|
|
|
|
-o -name README -o -name FreeColMessages.properties \) \
|
|
|
|
-exec sed -i -e "s/\(Copyright (C) 2...-\)2...\( *The FreeCol Team\)/\1$Y\2/" {} \;
|
2017-01-02 06:16:38 +01:00
|
|
|
exec find ./www.freecol.org -type f -a -name \*.html \
|
2015-05-08 07:05:10 +02:00
|
|
|
-exec sed -i -e "s/\(© 2...-\)2...\( *FreeCol\)/\1$Y\2/" {} \;
|