From 6eb638318a8bea65bcf5d7b48a33f744e795e333 Mon Sep 17 00:00:00 2001 From: Erik Joelsson Date: Tue, 7 May 2019 12:32:19 -0700 Subject: [PATCH] 8223319: Add copyright footer to specs and man pages Reviewed-by: iris, sspitsyn --- make/Docs.gmk | 114 ++++++++++++++++++++++------- make/common/TextFileProcessing.gmk | 8 +- src/hotspot/share/prims/jvmti.xml | 10 +-- src/hotspot/share/prims/jvmti.xsl | 71 ++++++++---------- 4 files changed, 123 insertions(+), 80 deletions(-) diff --git a/make/Docs.gmk b/make/Docs.gmk index 93e20d9446..3668a602aa 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -32,6 +32,7 @@ include ModuleTools.gmk include ProcessMarkdown.gmk include ToolsJdk.gmk include ZipArchive.gmk +include TextFileProcessing.gmk # This is needed to properly setup DOCS_MODULES. $(eval $(call ReadImportMetaData)) @@ -64,7 +65,7 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) \ # URLs JAVADOC_BASE_URL := https://docs.oracle.com/pls/topic/lookup?ctx=javase$(VERSION_NUMBER)&id=homepage BUG_SUBMIT_URL := https://bugreport.java.com/bugreport/ -COPYRIGHT_URL := {@docroot}/../legal/copyright.html +COPYRIGHT_URL := legal/copyright.html LICENSE_URL := https://www.oracle.com/technetwork/java/javase/terms/license/java$(VERSION_NUMBER)speclicense.html REDISTRIBUTION_URL := https://www.oracle.com/technetwork/java/redist-137594.html @@ -148,6 +149,15 @@ else HEADER_STYLE := style="margin-top: 14px;" endif +# $1 - Relative prefix to COPYRIGHT_URL +COPYRIGHT_BOTTOM = \ + Copyright \ + © 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME), \ + $(COMPANY_ADDRESS).
All rights reserved. \ + Use is subject to license terms and the \ + documentation redistribution policy. \ + $(DRAFT_MARKER_STR) + JAVADOC_BOTTOM := \ Report a bug or suggest an enhancement
\ For further API reference and developer documentation see the \ @@ -157,12 +167,7 @@ JAVADOC_BOTTOM := \ of terms, workarounds, and working code examples.
\ Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \ the US and other countries.
\ - Copyright \ - © 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME), \ - $(COMPANY_ADDRESS).
All rights reserved. \ - Use is subject to license terms and the \ - documentation redistribution policy. \ - $(DRAFT_MARKER_STR) + $(call COPYRIGHT_BOTTOM, {@docroot}/../) JAVADOC_TOP := \
' with '/' # and ';' with '/g" -e "s/', and adjusting for edge cases. + # '&' has special meaning in sed so needs to be escaped. $1_REPLACEMENTS_COMMAND_LINE := $(SED) -e 's$$($1_SEP)$$(subst $$(SPACE);$$(SPACE),$$($1_SEP)g' \ -e 's$$($1_SEP),$$(subst $$(SPACE)=>$$(SPACE),$$($1_SEP),$$(subst $$(SPACE)=>$$(SPACE);$$(SPACE),$$($1_SEP)$$($1_SEP)g' \ - -e 's$$($1_SEP),$$(strip $$($1_REPLACEMENTS)))))$$($1_SEP)g' + -e 's$$($1_SEP),$$(subst &,\&,$$(strip $$($1_REPLACEMENTS))))))$$($1_SEP)g' else # We don't have any replacements, just pipe the file through cat. $1_REPLACEMENTS_COMMAND_LINE := $(CAT) diff --git a/src/hotspot/share/prims/jvmti.xml b/src/hotspot/share/prims/jvmti.xml index 51fb856713..b55c108275 100644 --- a/src/hotspot/share/prims/jvmti.xml +++ b/src/hotspot/share/prims/jvmti.xml @@ -1,7 +1,7 @@ - - @@ -367,10 +365,6 @@ JVM Tool Interface - - Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. - - The JVM Tool Interface () is a programming interface used by development and monitoring tools. diff --git a/src/hotspot/share/prims/jvmti.xsl b/src/hotspot/share/prims/jvmti.xsl index d4a49b8f0f..8ab9f170a4 100644 --- a/src/hotspot/share/prims/jvmti.xsl +++ b/src/hotspot/share/prims/jvmti.xsl @@ -1,6 +1,6 @@ - + - @@ -119,7 +119,7 @@
  • Data Types
  • - @@ -220,12 +219,6 @@ - -

    - -

    -
    -

    @@ -286,7 +279,7 @@ - types: @@ -304,9 +297,9 @@ - + - flags and constants: @@ -322,7 +315,7 @@
    - +
    @@ -334,7 +327,7 @@ - +
    @@ -505,7 +498,7 @@ This function may be called from the callbacks to the Heap iteration functions, or from the - event handlers for the + event handlers for the GarbageCollectionStart, GarbageCollectionFinish, and ObjectFree events. @@ -536,7 +529,7 @@ - , + , @@ -932,7 +925,7 @@ typedef struct { - + @@ -949,12 +942,12 @@ typedef struct { - +
                 
    -          
    +
    @@ -977,7 +970,7 @@ typedef struct { - + @@ -994,7 +987,7 @@ typedef struct { - + @@ -1010,7 +1003,7 @@ typedef struct { - + @@ -1038,7 +1031,7 @@ typedef struct {