1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A
1N/A#
1N/A# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/A#
1N/A# buildksh93.readme
1N/A#
1N/A
1N/A* Intro:
1N/A"buildksh93.sh" is a small build script used to build the AT&T "ast-ksh"
1N/Aand "ast-open" packages using its native (nmake-based) build system
1N/Awhich is needed to build the iffe-generated (header) files (each time
1N/Afor { 32bit SPARC, 64bit SPARC, 32bit i386, 64bit AMD64, 32bit S390,
1N/A64bit S390x }) which are moved later to their matching OS/Net build
1N/Adirectories.
1N/A
1N/ATHIS SCRIPT IS NOT INTENDED FOR NORMAL USAGE.
1N/A
1N/A
1N/A* Note that buildksh93.sh modifies the build behaviour of the AST build
1N/Asystem, including enforcing C99/XPG6 semantics (which is MANDATORY!!)
1N/Aand feeding additional libraries (like libnsl, libsocket, librt etc.)
1N/Ato the feature look system (called "iffe" (="if feature exists")) to
1N/Aensure all features needed for the Solaris version of ksh93 are
1N/Aproperly found.
1N/A
1N/A
1N/A* Example usage of the script (more information can be found in the
1N/Ascript itself):
1N/A## Download AT&T ksh93 sources
1N/A$ wget --http-user="I accept www.opensource.org/licenses/cpl" --http-passwd="." 'http://www2.research.att.com/~gsf/download/tgz/INIT.2011-02-08.tgz'
1N/A$ wget --http-user="I accept www.opensource.org/licenses/cpl" --http-passwd="." 'http://www2.research.att.com/~gsf/download/tgz/ast-ksh.2011-02-08.tgz'
1N/A$ wget --http-user="I accept www.opensource.org/licenses/cpl" --http-passwd="." 'http://www2.research.att.com/~gsf/download/tgz/ast-open.2011-02-08.tgz'
1N/A
1N/A## Unpack the sources (32bit SPARC):
1N/A$ mkdir build_sparc_32bit
1N/A$ cd build_sparc_32bit
1N/A$ gunzip -c <'../INIT.2011-02-08.tgz' | tar -xf -
1N/A$ gunzip -c <'../ast-ksh.2011-02-08.tgz' | tar -xf -
1N/A
1N/A## Build ast-ksh for 32bit SPARC
1N/A# (build other build flags are:
1N/A# - 'build.debug.solaris.sparc.32bit.suncc' - 32bit SPARC
1N/A# - 'build.debug.solaris.sparc.64bit.suncc' - 64bit SPARC
1N/A# - 'build.debug.solaris.i386.32bit.suncc' - 32bit x86/i386
1N/A# - 'build.debug.solaris.i386.64bit.suncc' - 64bit x86/AMD64
1N/A# - 'build.debug.solaris.s390.32bit.gcc' - 32bit SystemZ/S390
1N/A# - 'build.debug.solaris.s390.64bit.gcc' - 64bit SystemZ/S390x
1N/A# )
1N/A$ time nice ksh ../buildksh93.sh 'build.solaris.sparc.32bit.suncc' 2>&1 | tee -a buildlog.log
1N/A
1N/A## Test ksh93:
1N/A$ time nice ksh ../buildksh93.sh 'testshell' 2>&1 | tee -a buildlog.log
1N/A
1N/A## Generated binaries and headers can be found in the arch/$(PLATFORM)/
1N/A## subdirectory.
1N/A
1N/A
1N/A# EOF.