equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
48 # Param 2 - Name of version.properties file including packages from the src |
48 # Param 2 - Name of version.properties file including packages from the src |
49 # root. |
49 # root. |
50 define SetupVersionProperties |
50 define SetupVersionProperties |
51 $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/$$(strip $2): |
51 $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/$$(strip $2): |
52 $(MKDIR) -p $$(@D) |
52 $(MKDIR) -p $$(@D) |
53 $(PRINTF) "jdk=$(JDK_VERSION)\nfull=$(FULL_VERSION)\nrelease=$(RELEASE)\n" \ |
53 $(PRINTF) "jdk=$(VERSION_NUMBER)\nfull=$(VERSION_STRING)\nrelease=$(VERSION_SHORT)\n" \ |
54 > $$@ |
54 > $$@ |
55 |
55 |
56 $$(strip $1) += $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/$$(strip $2) |
56 $$(strip $1) += $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/$$(strip $2) |
57 endef |
57 endef |
58 |
58 |
66 PROPSOURCES := $2 \ |
66 PROPSOURCES := $2 \ |
67 $$(shell $(FIND) $(LANGTOOLS_TOPDIR)/src/$(MODULE)/share/classes -name "*.properties") |
67 $$(shell $(FIND) $(LANGTOOLS_TOPDIR)/src/$(MODULE)/share/classes -name "*.properties") |
68 |
68 |
69 # Convert .../src/<module>/share/classes/com/sun/tools/javac/resources/javac_zh_CN.properties |
69 # Convert .../src/<module>/share/classes/com/sun/tools/javac/resources/javac_zh_CN.properties |
70 # to .../langtools/gensrc/<module>/com/sun/tools/javac/resources/javac_zh_CN.java |
70 # to .../langtools/gensrc/<module>/com/sun/tools/javac/resources/javac_zh_CN.java |
71 # Strip away prefix and suffix, leaving for example only: |
71 # Strip away prefix and suffix, leaving for example only: |
72 # "<module>/share/classes/com/sun/tools/javac/resources/javac_zh_CN" |
72 # "<module>/share/classes/com/sun/tools/javac/resources/javac_zh_CN" |
73 PROPJAVAS := $$(patsubst $(LANGTOOLS_TOPDIR)/src/%, \ |
73 PROPJAVAS := $$(patsubst $(LANGTOOLS_TOPDIR)/src/%, \ |
74 $(SUPPORT_OUTPUTDIR)/gensrc/%, \ |
74 $(SUPPORT_OUTPUTDIR)/gensrc/%, \ |
75 $$(patsubst %.properties, %.java, \ |
75 $$(patsubst %.properties, %.java, \ |
76 $$(subst /share/classes,, $$(PROPSOURCES)))) |
76 $$(subst /share/classes,, $$(PROPSOURCES)))) |