# HG changeset patch # User ohair # Date 1298743944 28800 # Node ID 11c7a0dfd31b4d9f7b53d672728390bf3fa7a7cb # Parent db5fd12e91c19d05263561bafdce553496192e81# Parent 2aee9117a090efc9af427990bb7d414b6128b0da Merge diff -r db5fd12e91c1 -r 11c7a0dfd31b jdk/make/common/shared/Defs-javadoc.gmk --- a/jdk/make/common/shared/Defs-javadoc.gmk Thu Feb 24 15:16:02 2011 -0800 +++ b/jdk/make/common/shared/Defs-javadoc.gmk Sat Feb 26 10:12:24 2011 -0800 @@ -61,33 +61,11 @@ 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 -r db5fd12e91c1 -r 11c7a0dfd31b jdk/make/docs/Makefile --- a/jdk/make/docs/Makefile Thu Feb 24 15:16:02 2011 -0800 +++ b/jdk/make/docs/Makefile Sat Feb 26 10:12:24 2011 -0800 @@ -166,7 +166,7 @@ # 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 @@ 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),)\