aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlana <none@none>2014-11-26 13:57:32 -0800
committerlana <none@none>2014-11-26 13:57:32 -0800
commit04e78dc97879c944d0d31b31140a49a1374a3f22 (patch)
treea831f464a5c23cce9b5cc06c306cc5a56345ce2c
parent85e8bd736f8f035ae66755eaba45c61592b9ff32 (diff)
parent5f6a3329c80ebdf86aee18b80884838144e88f57 (diff)
-rw-r--r--common/autoconf/generated-configure.sh18
-rw-r--r--common/autoconf/jdk-options.m410
2 files changed, 25 insertions, 3 deletions
diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh
index 2b13839..0025b6b 100644
--- a/common/autoconf/generated-configure.sh
+++ b/common/autoconf/generated-configure.sh
@@ -1026,6 +1026,7 @@ with_milestone
with_update_version
with_user_release_suffix
with_build_number
+with_copyright_year
with_boot_jdk
with_boot_jdk_jvmargs
with_add_source_root
@@ -1776,6 +1777,7 @@ Optional Packages:
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
@@ -3870,7 +3872,7 @@ fi
#CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks:
-DATE_WHEN_GENERATED=1413192141
+DATE_WHEN_GENERATED=1416326200
###############################################################################
#
@@ -11282,7 +11284,19 @@ fi
- 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 --git a/common/autoconf/jdk-options.m4 b/common/autoconf/jdk-options.m4
index 095fa79..5ac7701 100644
--- a/common/autoconf/jdk-options.m4
+++ b/common/autoconf/jdk-options.m4
@@ -510,7 +510,15 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VERSION_NUMBERS],
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