9 # published by the Free Software Foundation.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 # Script to update the Copyright YEAR range in Mercurial sources.
27 # (Originally from xdono, Thanks!)
28
29 if [ "`uname -s`" = "SunOS" ] ; then
30 awk=nawk
31 else
32 awk=awk
33 fi
34
35 # Stop on any error
36 set -e
37
38 # Temp area
39 tmp=/tmp/`basename $0`.${USER}.$$
40 rm -f -r ${tmp}
41 mkdir -p ${tmp}
42 total=0
43
44 # This year or supplied year
45 if [ "$1" != "" ] ; then
46 year="$1"
47 else
48 year=`date +%Y`
49 fi
50
51 # Return true if it makes sense to edit this file
52 saneFileToCheck()
53 {
|
9 # published by the Free Software Foundation.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 # Script to update the Copyright YEAR range in Mercurial sources.
27 # (Originally from xdono, Thanks!)
28
29 awk=awk
30
31 # Stop on any error
32 set -e
33
34 # Temp area
35 tmp=/tmp/`basename $0`.${USER}.$$
36 rm -f -r ${tmp}
37 mkdir -p ${tmp}
38 total=0
39
40 # This year or supplied year
41 if [ "$1" != "" ] ; then
42 year="$1"
43 else
44 year=`date +%Y`
45 fi
46
47 # Return true if it makes sense to edit this file
48 saneFileToCheck()
49 {
|