United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7104126 Insert openjdk copyright header back into TZdata files.
JDK-7104126 : Insert openjdk copyright header back into TZdata files.

Details
Type:
Bug
Submit Date:
2011-10-24
Status:
Closed
Updated Date:
2012-10-05
Project Name:
JDK
Resolved Date:
2011-11-07
Component:
core-libs
OS:
generic
Sub-Component:
java.util:i18n
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u2
Fixed Versions:
7u2 (b10)

Related Reports

Sub Tasks

Description
Copyright header got removed from tzdata files.

                                    

Comments
EVALUATION

add the copyright header back.
                                     
2011-10-24
didn't see a script in repo to provide this capability and reporter didn't decide to share a solution here.

create a tmp file called /tmp/cr and insert the copyright text ; 

#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#  
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.  Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#  
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#  
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#  
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#

after copying in the new tzdata files to jdk/make/sun/javazic/tzdata simply run this command : 

for i in `ls`; do cat /tmp/cr | cat - $i > /tmp/myfile && mv /tmp/myfile $i; done

                                     
2012-10-05



Hardware and Software, Engineered to Work Together