xref: /onnv-gate/usr/src/lib/libshell/misc/buildksh93.readme (revision 12068:08a39a083754)
14887Schin#
24887Schin# CDDL HEADER START
34887Schin#
44887Schin# The contents of this file are subject to the terms of the
54887Schin# Common Development and Distribution License (the "License").
64887Schin# You may not use this file except in compliance with the License.
74887Schin#
84887Schin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94887Schin# or http://www.opensolaris.org/os/licensing.
104887Schin# See the License for the specific language governing permissions
114887Schin# and limitations under the License.
124887Schin#
134887Schin# When distributing Covered Code, include this CDDL HEADER in each
144887Schin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154887Schin# If applicable, add the following below this CDDL HEADER, with the
164887Schin# fields enclosed by brackets "[]" replaced with your own identifying
174887Schin# information: Portions Copyright [yyyy] [name of copyright owner]
184887Schin#
194887Schin# CDDL HEADER END
208462SApril.Chin@Sun.COM
214887Schin#
22*12068SRoger.Faulkner@Oracle.COM# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
234887Schin#
244887Schin
254887Schin#
264887Schin# buildksh93.readme
274887Schin#
284887Schin
294887Schin* Intro:
308462SApril.Chin@Sun.COM"buildksh93.sh" is a small build script used to build the AT&T "ast-ksh"
314887Schinand "ast-open" packages using its native (nmake-based) build system
324887Schinwhich is needed to build the iffe-generated (header) files (each time
3310898Sroland.mainz@nrubsig.orgfor { 32bit SPARC, 64bit SPARC, 32bit i386, 64bit AMD64, 32bit S390,
3410898Sroland.mainz@nrubsig.org64bit S390x }) which are moved later to their matching OS/Net build
3510898Sroland.mainz@nrubsig.orgdirectories.
3610898Sroland.mainz@nrubsig.org
378462SApril.Chin@Sun.COMTHIS SCRIPT IS NOT INTENDED FOR NORMAL USAGE.
384887Schin
394887Schin
408462SApril.Chin@Sun.COM* Note that buildksh93.sh modifies the build behaviour of the AST build
414887Schinsystem, including enforcing C99/XPG6 semantics (which is MANDATORY!!)
424887Schinand feeding additional libraries (like libnsl, libsocket, librt etc.)
434887Schinto the feature look system (called "iffe" (="if feature exists")) to
444887Schinensure all features needed for the Solaris version of ksh93 are
454887Schinproperly found.
464887Schin
474887Schin
484887Schin* Example usage of the script (more information can be found in the
494887Schinscript itself):
504887Schin## Download AT&T ksh93 sources
51*12068SRoger.Faulkner@Oracle.COM$ wget --http-user="I accept www.opensource.org/licenses/cpl" --http-passwd="." 'http://www.research.att.com/sw/download/beta/INIT.2010-03-09.tgz'
52*12068SRoger.Faulkner@Oracle.COM$ wget --http-user="I accept www.opensource.org/licenses/cpl" --http-passwd="." 'http://www.research.att.com/sw/download/beta/ast-ksh.2010-03-09.tgz'
534887Schin
544887Schin## Unpack the sources (32bit SPARC):
558462SApril.Chin@Sun.COM$ mkdir build_sparc_32bit
568462SApril.Chin@Sun.COM$ cd build_sparc_32bit
57*12068SRoger.Faulkner@Oracle.COM$ gunzip -c <../INIT.2010-03-09.tgz | tar -xf -
58*12068SRoger.Faulkner@Oracle.COM$ gunzip -c <../ast-ksh.2010-03-09.tgz | tar -xf -
594887Schin
608462SApril.Chin@Sun.COM## Build ast-ksh for 32bit SPARC
618462SApril.Chin@Sun.COM# (build other build flags are:
628462SApril.Chin@Sun.COM#   - "build.solaris.sparc.32bit.suncc" - 32bit SPARC
638462SApril.Chin@Sun.COM#   - "build.solaris.sparc.64bit.suncc" - 64bit SPARC
648462SApril.Chin@Sun.COM#   - "build.solaris.i386.32bit.suncc"  - 32bit x86/i386
658462SApril.Chin@Sun.COM#   - "build.solaris.i386.64bit.suncc"  - 64bit x86/AMD64
668462SApril.Chin@Sun.COM#   - "build.solaris.s390.32bit.gcc"    - 32bit SystemZ/S390
678462SApril.Chin@Sun.COM#   - "build.solaris.s390.64bit.gcc"    - 64bit SystemZ/S390x
684887Schin# )
698462SApril.Chin@Sun.COM$ time nice ksh ../buildksh93.sh "build.solaris.sparc.32bit.suncc" 2>&1 | tee -a buildlog.log
704887Schin
718462SApril.Chin@Sun.COM## Test ksh93:
728462SApril.Chin@Sun.COM$ time nice ksh ../buildksh93.sh "testshell" 2>&1 | tee -a buildlog.log
734887Schin
744887Schin## Generated binaries and headers can be found in the arch/$(PLATFORM)/
754887Schin## subdirectory.
764887Schin
774887Schin
784887Schin# EOF.
79