1447N/A# Script for building Solaris X Consolidation 0N/A########################################################################### 1447N/A# Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. 0N/A# Permission is hereby granted, free of charge, to any person obtaining a 919N/A# copy of this software and associated documentation files (the "Software"), 919N/A# to deal in the Software without restriction, including without limitation 919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense, 919N/A# and/or sell copies of the Software, and to permit persons to whom the 919N/A# Software is furnished to do so, subject to the following conditions: 919N/A# The above copyright notice and this permission notice (including the next 919N/A# paragraph) shall be included in all copies or substantial portions of the 919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 919N/A# DEALINGS IN THE SOFTWARE. 0N/A########################################################################### 967N/A# Add /usr/sbin to path for dtrace (to build probes in X servers) 1447N/A# Ensure mkdir sets expected permissions for directories in proto area 1423N/A ?)
print -
u2 "USAGE: $0 [-p [-P publisher]] [-s] [-v]";
exit 2 ;;
970N/A print -
u2 "USAGE: $0 [-p [-P publisher]] [-v]" 493N/A# Send all further output & errors to the log file 1296N/A# Extract variables from makefiles via make and set them in the shell 906N/A# for every module built 906N/Aprint "------------------------------------------------------------------------------" 906N/Aprint "Building gate at hg id: ${XBUILD_HG_ID}" 1022N/A# Make sure Sun C compiler is at least version 5.10 (Studio 12 Update 1) 802N/Acc -V
2>&
1 |
perl -n -e
'if (($_ =~ m| C (\d+).(\d+)|)) { \ 1022N/A print $_ ; print "*** Compiler too old!\n" if ( ($1 != 5) || ($2 < 10) ) }' 1296N/A# Log paths & versions of tools which use gnu standard --version flag 1423N/A# Exported to stop Studio compilers from reporting home on each usage 906N/Aprint "Using these environment variables: " 906N/Aprint "------------------------------------------------------------------------------" 970N/A# Clean new proto areas for this architecture 1423N/A# Generate source release while tree is in clean state, but ensure we have all 1423N/A# the required tarballs for both platforms, (and no extras/old ones) first. 1423N/Aif [
"${MAKE_SRC_RELEASE}" =
1 ] ;
then 1296N/Aif [[
"${USE_PARFAIT}" ==
"yes" ]] ;
then 1296N/A -j
"${DMAKE_MAX_JOBS:-100%}" -r
"${XBUILD_HG_ID}" \
1196N/Aprint "\nFinished building the X Window System Consolidation for" \
1196N/A "${DISTRO_NAME:-OpenSolaris}.\n" 1130N/Aif [
"${MAKE_PKGS}" =
1 ] ;
then 1130N/A print -n
"Build finish time: " ;
date ;
print "" 1296N/Aif [[
"${USE_PARFAIT}" ==
"yes" ]] ;
then 1296N/A print -n
"\nParfait issues: " 1196N/Aprint -n
"\ncheck-rtime errors: " 906N/A printf("Runtime: %d:%02d\n", $runtime/3600, ($runtime%3600)/60); ' \