# HG changeset patch # User erikj # Date 1416434444 28800 # Node ID 01a98532348477a84b6e3c322fdd12dfed28d96d # Parent 9ab7e7907088dc5e2c0db7f795f6cd22b8ce6fdc 8065183: Add --with-copyright-year option to configure Reviewed-by: tbell, ihse diff -r 9ab7e7907088 -r 01a985323484 common/autoconf/generated-configure.sh --- a/common/autoconf/generated-configure.sh Mon Nov 17 12:37:48 2014 -0800 +++ b/common/autoconf/generated-configure.sh Wed Nov 19 14:00:44 2014 -0800 @@ -1024,6 +1024,7 @@ with_update_version with_user_release_suffix with_build_number +with_copyright_year with_boot_jdk with_boot_jdk_jvmargs with_add_source_root @@ -1774,6 +1775,7 @@ Add a custom string to the version string if build number isn't set.[username_builddateb00] --with-build-number Set build number value for build [b00] + --with-copyright-year Set copyright year value for build [current year] --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] --with-boot-jdk-jvmargs specify JVM arguments to be passed to all invocations of the Boot JDK, overriding the default @@ -3868,7 +3870,7 @@ #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1410971760 +DATE_WHEN_GENERATED=1416326200 ############################################################################### # @@ -11280,7 +11282,19 @@ - COPYRIGHT_YEAR=`date +'%Y'` + +# Check whether --with-copyright-year was given. +if test "${with_copyright_year+set}" = set; then : + withval=$with_copyright_year; +fi + + if test "x$with_copyright_year" = xyes; then + as_fn_error $? "Copyright year must have a value" "$LINENO" 5 + elif test "x$with_copyright_year" != x; then + COPYRIGHT_YEAR="$with_copyright_year" + else + COPYRIGHT_YEAR=`date +'%Y'` + fi if test "x$JDK_UPDATE_VERSION" != x; then diff -r 9ab7e7907088 -r 01a985323484 common/autoconf/jdk-options.m4 --- a/common/autoconf/jdk-options.m4 Mon Nov 17 12:37:48 2014 -0800 +++ b/common/autoconf/jdk-options.m4 Wed Nov 19 14:00:44 2014 -0800 @@ -510,7 +510,15 @@ AC_SUBST(MACOSX_BUNDLE_NAME_BASE) AC_SUBST(MACOSX_BUNDLE_ID_BASE) - COPYRIGHT_YEAR=`date +'%Y'` + AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year], + [Set copyright year value for build @<:@current year@:>@])]) + if test "x$with_copyright_year" = xyes; then + AC_MSG_ERROR([Copyright year must have a value]) + elif test "x$with_copyright_year" != x; then + COPYRIGHT_YEAR="$with_copyright_year" + else + COPYRIGHT_YEAR=`date +'%Y'` + fi AC_SUBST(COPYRIGHT_YEAR) if test "x$JDK_UPDATE_VERSION" != x; then