make_release_packages revision 1003
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Permission is hereby granted, free of charge, to any person obtaining a
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# copy of this software and associated documentation files (the "Software"),
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# to deal in the Software without restriction, including without limitation
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# the rights to use, copy, modify, merge, publish, distribute, sublicense,
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# and/or sell copies of the Software, and to permit persons to whom the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Software is furnished to do so, subject to the following conditions:
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# The above copyright notice and this permission notice (including the next
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# paragraph) shall be included in all copies or substantial portions of the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg# DEALINGS IN THE SOFTWARE.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Create and fill a package staging area for X
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# This script should be run from the base of the build tree.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# -v Enable verbose mode
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# -p <publisher> Set publisher name in built repo to <publisher>
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Make sure that we aren't affected by the personal environment of
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# whoever is running this script
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Path to directory in build tree containing build tools
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesPUBLISHER_FLAGS="" # publisher flags passed to make
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesset -- $(getopt p:v $*)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesif [ $? != 0 ] ; then
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgfor i in $* ; do
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesif [[ -z "${XNV_BUILDNUM}" ]] ; then
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes # Get build version from hg by searching for most recent tag matching nv_*
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes perl -l -n -e 'if ($_ =~ m/^tag:\s+nv_(\d+)/) {print $1 ; exit}')"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes if [[ -z "${BUILD_TAG}" ]] ; then
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes fatal_error "BUILD_TAG could not be found from hg_log"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesprint "Building packages for X Consolidation, Nevada build ${XNV_BUILDNUM}"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Remove old packages
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes${XMAKE} install XNV_BUILDNUM="${XNV_BUILDNUM}" "${PUBLISHER_FLAGS}" > "${LOG}" 2>&1
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes${XMAKE} check XNV_BUILDNUM="${XNV_BUILDNUM}" > "${CHECK_LOG}" 2>&1
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesprint "Result log is in ${LOG}"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes"${BUILD_TOOLS}/find-build-errors" -s "${CHECK_LOG}"