From d8cd0e62385a930ebc5a583c0bc9f6438c9316c7 Mon Sep 17 00:00:00 2001 From: Kelly O'Hair Date: Sat, 26 Feb 2011 09:45:47 -0800 Subject: [PATCH] 7016175: HTML generated from new JavaDoc has tags added from makefile Reviewed-by: jjg --- jdk/make/common/shared/Defs-javadoc.gmk | 30 ++++--------------------- jdk/make/docs/Makefile | 4 ++-- 2 files changed, 6 insertions(+), 28 deletions(-) diff --git a/jdk/make/common/shared/Defs-javadoc.gmk b/jdk/make/common/shared/Defs-javadoc.gmk index a5ffe8e285e..a98542db061 100644 --- a/jdk/make/common/shared/Defs-javadoc.gmk +++ b/jdk/make/common/shared/Defs-javadoc.gmk @@ -61,33 +61,11 @@ COMMA:= , EMPTY:= SPACE:=$(EMPTY) $(EMPTY) COPYRIGHT_SYMBOL = &\#x00a9; -# Macros to handle the optional empty args. +# Macro to construct the copyright line # (The GNU make 3.78.1 "if" conditional is broken, fixed in GNU make 3.81) -define OptionalCopyrightUrl # url -$(shell \ - if [ "$1" != "" ] ; then \ - printf "Copyright" "$1"; \ - else \ - printf "Copyright"; \ - fi) -endef -define OptionalCopyrightFirstYear # year -$(shell \ - if [ "$1" != "" ] ; then \ - printf "%s," "$1";\ - fi) -endef -define OptionalCompanyAddress # address -$(shell \ - if [ "$1" != "" ] ; then \ - printf "%s" "$1";\ - fi) -endef define CopyrightLine # optionalurl optionalfirstyear optionaladdress -$(call OptionalCopyrightUrl,$1) $(COPYRIGHT_SYMBOL)\ -$(call OptionalCopyrightFirstYear,$2) $(COPYRIGHT_YEAR),\ -$(COMPANY_NAME).\ -$(call OptionalCompanyAddress,$3)\ -All rights reserved. +$(if $(strip $1),Copyright,Copyright) \ +$(COPYRIGHT_SYMBOL) $(if $2,$2${COMMA},) $(COPYRIGHT_YEAR),\ +$(FULL_COMPANY_NAME). $3 All rights reserved. endef diff --git a/jdk/make/docs/Makefile b/jdk/make/docs/Makefile index 98bf18b76da..0a2012f5a8e 100644 --- a/jdk/make/docs/Makefile +++ b/jdk/make/docs/Makefile @@ -166,7 +166,7 @@ JDKJRE2COREAPI = ../../api # Common bottom argument define CommonBottom # year -

$(call CopyrightLine,,$1,) +
$(call CopyrightLine,,$1,)
endef # Common trademark bottom argument (Not sure why this is used sometimes) @@ -183,7 +183,7 @@ COREAPI_BOTTOM = $(BUG_SUBMIT_LINE)\ see Java SE Documentation. \ That documentation contains more detailed, developer-targeted descriptions, \ with conceptual overviews, definitions of terms, workarounds, \ -and working code examples.

\ +and working code examples.
\ $(call CopyrightLine,$(COPYRIGHT_URL),$(FIRST_COPYRIGHT_YEAR),)\