xref: /titanic_44/usr/src/tools/scripts/stdenv.sh (revision 1fe696781bd9d06b5745b19d0c5161dfa09736de)
1*1fe69678Skupfer#
2*1fe69678Skupfer# CDDL HEADER START
3*1fe69678Skupfer#
4*1fe69678Skupfer# The contents of this file are subject to the terms of the
5*1fe69678Skupfer# Common Development and Distribution License (the "License").
6*1fe69678Skupfer# You may not use this file except in compliance with the License.
7*1fe69678Skupfer#
8*1fe69678Skupfer# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1fe69678Skupfer# or http://www.opensolaris.org/os/licensing.
10*1fe69678Skupfer# See the License for the specific language governing permissions
11*1fe69678Skupfer# and limitations under the License.
12*1fe69678Skupfer#
13*1fe69678Skupfer# When distributing Covered Code, include this CDDL HEADER in each
14*1fe69678Skupfer# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1fe69678Skupfer# If applicable, add the following below this CDDL HEADER, with the
16*1fe69678Skupfer# fields enclosed by brackets "[]" replaced with your own identifying
17*1fe69678Skupfer# information: Portions Copyright [yyyy] [name of copyright owner]
18*1fe69678Skupfer#
19*1fe69678Skupfer# CDDL HEADER END
20*1fe69678Skupfer#
21*1fe69678Skupfer
22*1fe69678Skupfer#
23*1fe69678Skupfer# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*1fe69678Skupfer# Use is subject to license terms.
25*1fe69678Skupfer#
26*1fe69678Skupfer# ident	"%Z%%M%	%I%	%E% SMI"
27*1fe69678Skupfer#
28*1fe69678Skupfer
29*1fe69678Skupfer#
30*1fe69678Skupfer# Shell script fragment to set standard build environment variables,
31*1fe69678Skupfer# for use by bldenv(1) and nightly(1).  Can be overridden by the
32*1fe69678Skupfer# user's environment file.  Because bldenv and nightly are both ksh
33*1fe69678Skupfer# scripts, we can use ksh syntax here.
34*1fe69678Skupfer#
35*1fe69678Skupfer
36*1fe69678Skupfer#
37*1fe69678Skupfer# the source product has no SCCS history, and is modified to remove source
38*1fe69678Skupfer# that cannot be shipped. EXPORT_SRC is where the clear files are copied, then
39*1fe69678Skupfer# modified with 'make EXPORT_SRC'.
40*1fe69678Skupfer#
41*1fe69678Skupfer[ -n "$EXPORT_SRC" ] || export EXPORT_SRC="$CODEMGR_WS/export_src"
42*1fe69678Skupfer
43*1fe69678Skupfer#
44*1fe69678Skupfer# CRYPT_SRC is similar to EXPORT_SRC, but after 'make CRYPT_SRC' the files in
45*1fe69678Skupfer# xmod/cry_files are saved. They are dropped on the exportable source to create
46*1fe69678Skupfer# the domestic build.
47*1fe69678Skupfer#
48*1fe69678Skupfer[ -n "$CRYPT_SRC" ] || export CRYPT_SRC="$CODEMGR_WS/crypt_src"
49*1fe69678Skupfer
50*1fe69678Skupfer#
51*1fe69678Skupfer# OPEN_SRCDIR is where we copy the open tree to so that we can be sure
52*1fe69678Skupfer# we don't have a hidden dependency on closed code.  The name ends in
53*1fe69678Skupfer# "DIR" to avoid confusion with the flags related to open source
54*1fe69678Skupfer# builds.
55*1fe69678Skupfer#
56*1fe69678Skupfer[ -n "$OPEN_SRCDIR" ] || export OPEN_SRCDIR="$CODEMGR_WS/open_src"
57