buildit revision 1196
366N/A# Script for building OpenSolaris X Consolidation 366N/A########################################################################### 366N/A# Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved. 366N/A# Permission is hereby granted, free of charge, to any person obtaining a 366N/A# copy of this software and associated documentation files (the "Software"), 366N/A# to deal in the Software without restriction, including without limitation 366N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense, 366N/A# and/or sell copies of the Software, and to permit persons to whom the 366N/A# Software is furnished to do so, subject to the following conditions: 366N/A# The above copyright notice and this permission notice (including the next 366N/A# paragraph) shall be included in all copies or substantial portions of the 366N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 366N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 366N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 366N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 366N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 366N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 366N/A# DEALINGS IN THE SOFTWARE. 366N/A########################################################################### 366N/A# Add /usr/sbin to path for dtrace (to build probes in X servers) 366N/A print -u2 "${progname}: ERROR: $*" 366N/A ?)
print -
u2 "USAGE: $0 [-p [-P publisher]] [-v]";
exit 2 ;;
366N/A print -
u2 "USAGE: $0 [-p [-P publisher]] [-v]" 366N/A# Send all further output & errors to the log file 366N/A# for every module built 366N/Aprint "------------------------------------------------------------------------------" 366N/Aprint "Building gate at hg id: ${XBUILD_HG_ID}" 366N/Aprint "Using these compilers: " 366N/A# Make sure Sun C compiler is at least version 5.10 (Studio 12 Update 1) 366N/Acc -V
2>&
1 |
perl -n -e
'if (($_ =~ m| C (\d+).(\d+)|)) { \ 366N/A print $_ ; print "*** Compiler too old!\n" if ( ($1 != 5) || ($2 < 10) ) }' 366N/A# Exported to stop Sun compilers from reporting home on each usage 366N/Aprint "Using these environment variables: " 366N/Aprint "------------------------------------------------------------------------------" 366N/A# Remove old proto area & package area to clean after moving to new locations 366N/Aif [
"${MACH}" =
"i386" ];
then 366N/A# Clean new proto areas for this architecture 366N/A# Run as two steps to avoid race between cleaning & rebuilding when 366N/Aprint "\nFinished building the X Window System Consolidation for" \
366N/A "${DISTRO_NAME:-OpenSolaris}.\n" 366N/Aif [
"${MAKE_PKGS}" =
1 ] ;
then 366N/A print -n
"Build finish time: " ;
date ;
print "" 366N/Aprint -n
"\ncheck-rtime errors: " 366N/A printf("Runtime: %d:%02d\n", $runtime/3600, ($runtime%3600)/60); ' \