buildit revision 1124
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Script for building OpenSolaris X Consolidation
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen###########################################################################
0a53eb0283d7ec28c6105f61e118b96fce8ecb95Timo Sirainen# Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Permission is hereby granted, free of charge, to any person obtaining a
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# copy of this software and associated documentation files (the "Software"),
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# to deal in the Software without restriction, including without limitation
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# the rights to use, copy, modify, merge, publish, distribute, sublicense,
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# and/or sell copies of the Software, and to permit persons to whom the
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Software is furnished to do so, subject to the following conditions:
f64b5bc9e73bedc63ba3c072c286542c29c69e43Timo Sirainen# The above copyright notice and this permission notice (including the next
f64b5bc9e73bedc63ba3c072c286542c29c69e43Timo Sirainen# paragraph) shall be included in all copies or substantial portions of the
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
242abe3ad2423776e9cf05e1304eb8fda4831b23Timo Sirainen# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0a53eb0283d7ec28c6105f61e118b96fce8ecb95Timo Sirainen# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0a53eb0283d7ec28c6105f61e118b96fce8ecb95Timo Sirainen# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
377dd19a90436b8f96902af741a3ea130bc3fe75Timo Sirainen# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
caae18c876f81e261350e4957471efa453c0ea9fTimo Sirainen# DEALINGS IN THE SOFTWARE.
0a53eb0283d7ec28c6105f61e118b96fce8ecb95Timo Sirainen###########################################################################
export PATH
function fatal_error
while getopts pP:v i; do
case $i in
# Find hg id and export it so set-elf-comments.pl doesn't have to re-run
gcc -v