common/autoconf/jdk-options.m4

Print this page




 405 #
 406 # Setup version numbers
 407 #
 408 AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VERSION_NUMBERS],
 409 [
 410 # Source the version numbers
 411 . $AUTOCONF_DIR/version-numbers
 412 
 413 # Get the settings from parameters
 414 AC_ARG_WITH(milestone, [AS_HELP_STRING([--with-milestone], 
 415                        [Set milestone value for build @<:@internal@:>@])])
 416 if test "x$with_milestone" = xyes; then
 417   AC_MSG_ERROR([Milestone must have a value])
 418 elif test "x$with_milestone" != x; then
 419     MILESTONE="$with_milestone"
 420 fi
 421 if test "x$MILESTONE" = x; then
 422   MILESTONE=internal
 423 fi
 424 








 425 AC_ARG_WITH(build-number, [AS_HELP_STRING([--with-build-number], 
 426                           [Set build number value for build @<:@b00@:>@])])
 427 if test "x$with_build_number" = xyes; then
 428   AC_MSG_ERROR([Build number must have a value])
 429 elif test "x$with_build_number" != x; then
 430   JDK_BUILD_NUMBER="$with_build_number"
 431 fi
 432 if test "x$JDK_BUILD_NUMBER" = x; then
 433   JDK_BUILD_NUMBER=b00
 434 fi
 435 
 436 AC_ARG_WITH(user-release-suffix, [AS_HELP_STRING([--with-user-release-suffix], 
 437         [Add a custom string to the version string if build number isn't set.@<:@username_builddateb00@:>@])])
 438 if test "x$with_user_release_suffix" = xyes; then
 439   AC_MSG_ERROR([Release suffix must have a value])
 440 elif test "x$with_user_release_suffix" != x; then
 441   USER_RELEASE_SUFFIX="$with_user_release_suffix"
 442 else
 443   BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
 444   # Avoid [:alnum:] since it depends on the locale.




 405 #
 406 # Setup version numbers
 407 #
 408 AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VERSION_NUMBERS],
 409 [
 410 # Source the version numbers
 411 . $AUTOCONF_DIR/version-numbers
 412 
 413 # Get the settings from parameters
 414 AC_ARG_WITH(milestone, [AS_HELP_STRING([--with-milestone], 
 415                        [Set milestone value for build @<:@internal@:>@])])
 416 if test "x$with_milestone" = xyes; then
 417   AC_MSG_ERROR([Milestone must have a value])
 418 elif test "x$with_milestone" != x; then
 419     MILESTONE="$with_milestone"
 420 fi
 421 if test "x$MILESTONE" = x; then
 422   MILESTONE=internal
 423 fi
 424 
 425 AC_ARG_WITH(update-version, [AS_HELP_STRING([--with-update-version], 
 426                           [Set update version value for build @<:@b00@:>@])])
 427 if test "x$with_update_version" = xyes; then
 428   AC_MSG_ERROR([Update version must have a value])
 429 elif test "x$with_update_version" != x; then
 430   JDK_UPDATE_VERSION="$with_update_version"
 431 fi
 432 
 433 AC_ARG_WITH(build-number, [AS_HELP_STRING([--with-build-number], 
 434                           [Set build number value for build @<:@b00@:>@])])
 435 if test "x$with_build_number" = xyes; then
 436   AC_MSG_ERROR([Build number must have a value])
 437 elif test "x$with_build_number" != x; then
 438   JDK_BUILD_NUMBER="$with_build_number"
 439 fi
 440 if test "x$JDK_BUILD_NUMBER" = x; then
 441   JDK_BUILD_NUMBER=b00
 442 fi
 443 
 444 AC_ARG_WITH(user-release-suffix, [AS_HELP_STRING([--with-user-release-suffix], 
 445         [Add a custom string to the version string if build number isn't set.@<:@username_builddateb00@:>@])])
 446 if test "x$with_user_release_suffix" = xyes; then
 447   AC_MSG_ERROR([Release suffix must have a value])
 448 elif test "x$with_user_release_suffix" != x; then
 449   USER_RELEASE_SUFFIX="$with_user_release_suffix"
 450 else
 451   BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
 452   # Avoid [:alnum:] since it depends on the locale.