make/CopyInterimCLDRConverter.gmk
author ihse
Wed, 05 Sep 2018 10:24:46 +0200
branchihse-runtool-branch
changeset 56881 721e92578181
parent 47217 72e3ae9a25eb
child 52065 dea8a62cdfc3
permissions -rw-r--r--
Create ihse-runtool-branch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32015
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     1
#
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     2
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     4
#
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    10
#
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    15
# accompanied this code).
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    16
#
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    20
#
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    23
# questions.
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    24
#
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    25
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    26
default: all
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    27
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    28
include $(SPEC)
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    29
include MakeBase.gmk
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    30
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    31
##########################################################################################
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    32
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    33
### CLDRConverter needs the JRE time zone names from the java.base source.
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    34
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    35
define cldrconverter_copytznames
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    36
	$(MKDIR) -p '$(@D)'
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    37
	$(RM) '$@'
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    38
	$(SED) -e "s/package sun.util.resources/package build.tools.cldrconverter/" \
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    39
        -e "s/extends TimeZoneNamesBundle//" \
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    40
        -e "s/protected final/static final/" \
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    41
        < $(<) > $@
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    42
endef
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    43
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    44
$(eval $(call SetupCopyFiles,COPY_INTERIM_CLDRCONVERTER, \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    45
    SRC := $(TOPDIR)/src/java.base/share/classes/sun/util/resources, \
32015
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    46
    DEST := $(BUILDTOOLS_OUTPUTDIR)/interim_cldrconverter_classes/build/tools/cldrconverter, \
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    47
    FILES := TimeZoneNames.java, \
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    48
    MACRO := cldrconverter_copytznames))
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    49
    
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    50
##########################################################################################
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    51
eda394dcd1aa 8129881: JDK-8008577 breaks Nashorn test
naoto
parents:
diff changeset
    52
all: $(COPY_INTERIM_CLDRCONVERTER)