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