changeset 483:95dc6d5a951f oi-extras

Add CBE package
author Andrzej Szeszo <aszeszo@gmail.com>
date Thu, 05 May 2011 16:49:14 +0100
parents 903f42832e3e
children ce4e05c44c96
files oi-extras/cbe/Makefile oi-extras/cbe/cbe.license oi-extras/cbe/cbe.p5m oi-extras/cbe/files/bin/env.csh oi-extras/cbe/files/bin/env.sh oi-extras/cbe/files/bin/env_include.sh oi-extras/cbe/files/bin/gendiff oi-extras/cbe/files/bin/ld-wrapper oi-extras/cbe/files/cbe-env/gcc3 oi-extras/cbe/files/cbe-env/gcc3.1 oi-extras/cbe/files/cbe-env/sexp oi-extras/cbe/files/cbe-env/ss12
diffstat 12 files changed, 655 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/Makefile	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,45 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL)". You may
+# only use this file in accordance with the terms of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source. A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# Copyright 2011, Andrzej Szeszo
+#
+
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		cbe
+COMPONENT_VERSION=	1.8.0
+
+include ../../make-rules/ips.mk
+
+PKGMANGLE = true
+PKGLINT = true
+
+download:
+
+prep:
+
+configure:
+
+build:
+
+install:
+	rm -rf $(PROTO_DIR)
+	mkdir -p $(PROTO_DIR)/opt/dtbld/bin
+	mkdir -p $(PROTO_DIR)/opt/dtbld/lib/cbe-env
+	cp files/bin/* $(PROTO_DIR)/opt/dtbld/bin
+	cp files/cbe-env/* $(PROTO_DIR)/opt/dtbld/lib/cbe-env
+
+test:		$(NO_TESTS)
+
+clean:
+	[ -d $(BUILD_DIR) ] || rm -rf $(BUILD_DIR)
+
+clobber: clean
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/cbe.license	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,26 @@
+#
+# Script for setting up the Desktop Build Environment on Solaris
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License").  You may not use this file except in compliance
+# with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/cbe.p5m	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,64 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL)". You may
+# only use this file in accordance with the terms of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source. A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# Copyright 2011, Andrzej Szeszo
+#
+
+set name=pkg.fmri value=pkg:/developer/build/cbe@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="Desktop CBE: env setup scripts for the Desktop CBE"
+set name=info.classification value="org.opensolaris.category.2008:Development/Distribution Tools"
+set name=info.upstream_url value=http://dlc.sun.com/osol/jds/downloads/cbe/test/
+
+license cbe.license license="CDDL"
+
+dir path=opt
+dir path=opt/dtbld
+dir path=opt/dtbld/bin
+dir path=opt/dtbld/lib
+dir path=opt/dtbld/lib/cbe-env
+dir path=opt/jdsbld
+dir path=opt/jdsbld/share
+file path=opt/dtbld/bin/env.csh
+file path=opt/dtbld/bin/env.sh
+file path=opt/dtbld/bin/env_include.sh
+file path=opt/dtbld/bin/gendiff
+file path=opt/dtbld/bin/ld-wrapper
+file path=opt/dtbld/lib/cbe-env/gcc3
+file path=opt/dtbld/lib/cbe-env/gcc3.1
+file path=opt/dtbld/lib/cbe-env/sexp
+file path=opt/dtbld/lib/cbe-env/ss12
+link path=opt/dtbld/bin/aclocal target=../../../usr/bin/aclocal-1.10
+link path=opt/dtbld/bin/automake target=../../../usr/bin/automake-1.10
+link path=opt/dtbld/bin/diff target=../../../usr/bin/gdiff
+link path=opt/dtbld/bin/grep target=../../../usr/gnu/bin/grep
+link path=opt/dtbld/bin/install target=../../../usr/bin/ginstall
+link path=opt/dtbld/bin/m4 target=../../../usr/gnu/bin/m4
+link path=opt/dtbld/bin/make target=../../../usr/gnu/bin/make
+link path=opt/dtbld/lib/cbe-env/default target=sexp
+link path=opt/jdsbld/bin target=../dtbld/bin
+link path=opt/jdsbld/share/aclocal target=../../../usr/share/aclocal
+
+depend fmri=developer/build/ant type=require
+depend fmri=developer/macro/gnu-m4 type=require
+depend fmri=developer/build/autoconf type=require
+depend fmri=developer/build/libtool type=require
+depend fmri=developer/build/automake-19 type=require
+depend fmri=developer/build/automake-110 type=require
+depend fmri=developer/parser/bison type=require
+depend fmri=file/gnu-coreutils type=require
+depend fmri=text/gnu-diffutils type=require
+depend fmri=developer/lexer/flex type=require
+depend fmri=text/gnu-gettext type=require
+depend fmri=developer/build/gnu-make type=require
+depend fmri=developer/versioning/subversion type=require
+depend fmri=developer/build/cmake type=require
+
+depend fmri=package/pkgbuild type=require
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/bin/env.csh	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,183 @@
+#!/bin/csh
+#
+# Script for setting up the shell environment for using the Desktop CBE
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License").  You may not use this file except in compliance
+# with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+
+if ( ! ${?JDS_CBE_ENV_QUIET} ) set JDS_CBE_ENV_QUIET=0
+
+test "$JDS_CBE_ENV_QUIET" != 1  && \
+    echo "Desktop CBE version 1.8.0"
+
+set myarch=`uname -p`
+if ( $myarch == "i386" ) set myarch=x86
+
+set vars=`env | grep '^[a-zA-Z0-9_]*=' | cut -f1 -d=`
+foreach var ( $vars )
+    switch ($var)
+    case PS1:
+    case PS2:
+    case HZ:
+    case TERM:
+    case SHELL:
+    case OLDPWD:
+    case PATH:
+    case MAIL:
+    case PWD:
+    case TZ:
+    case SHLVL:
+    case HOME:
+    case LOGNAME:
+    case PRINTER:
+    case HOST:
+    case HOSTNAME:
+    case HOSTTYPE:
+    case _:
+    case CC:
+    case CXX:
+    case EDITOR:
+    case SVN_EDITOR:
+    case SSH_*:
+    case DISPLAY:
+    case LESS*:
+    case LS_COLORS:
+    case LS_OPTIONS:
+    case TERMINFO:
+    case PAGER:
+    case MANPATH:
+    case VISUAL:
+    case http_proxy:
+    case https_proxy:
+    case ftp_proxy:
+    case CVSROOT:
+    case CVS_RSH:
+    case DBUS_*:
+    case SESSION_MANAGER:
+    case XAUTHORITY:
+    case JDS_CBE_ENV_QUIET:
+      breaksw
+    default:
+      test "$JDS_CBE_ENV_QUIET" != 1  && echo Unsetting $var
+      unsetenv $var
+      breaksw
+    endsw
+end
+
+set CBE_PREFIX=/opt/dtbld
+
+set invalid_env=no
+if ( $#argv >= 1 ) then
+    if ( -f "$CBE_PREFIX/lib/cbe-env/$argv[1]" ) then
+	eval setenv CC `cat "$CBE_PREFIX/lib/cbe-env/$argv[1]" | grep '^CC=' | cut -f2- -d=`
+	eval setenv CXX `cat "$CBE_PREFIX/lib/cbe-env/$argv[1]" | grep '^CXX=' | cut -f2- -d=`
+    else
+	echo "ERROR: Unknown CBE environment: $argv[1]"
+	echo
+	echo "Valid choices are: "
+	/bin/ls -l "$CBE_PREFIX/lib/cbe-env" | cut -c54- | /bin/sed -e 's/ /	/'
+	echo
+	set invalid_env=yes
+    endif
+else
+    if ( -f "$CBE_PREFIX/lib/cbe-env/default" ) then
+	eval setenv CC `cat "$CBE_PREFIX/lib/cbe-env/default" | grep '^CC=' | cut -f2- -d=`
+	eval setenv CXX `cat "$CBE_PREFIX/lib/cbe-env/default" | grep '^CXX=' | cut -f2- -d=`
+    else
+	echo "ERROR: Default CBE environment missing"
+	set invalid_env=yes
+    endif
+endif
+
+if ( $invalid_env != yes ) then
+    # backward compat with old JDS CBEs:
+    setenv CC32 "$CC"
+    setenv CC64 "$CC"
+    setenv CXX32 "$CXX"
+    setenv CXX64 "$CXX"
+
+    if ( "$JDS_CBE_ENV_QUIET" != 1 ) then
+	echo Using CC=$CC
+	echo Using CXX=$CXX
+    endif
+
+    set CCDIR=`dirname $CC`
+    if ( $CCDIR != "/usr/bin" ) then
+	setenv PATH "${CBE_PREFIX}/bin:${CCDIR}:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin"
+    else
+	setenv PATH "${CBE_PREFIX}/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin"
+    endif
+
+    test "$JDS_CBE_ENV_QUIET" != 1  && \
+	echo Setting PATH=$PATH
+endif
+
+setenv CONFIG_SHELL "/bin/bash"
+test "$JDS_CBE_ENV_QUIET" != 1  && \
+    echo Setting CONFIG_SHELL=$CONFIG_SHELL
+
+setenv MAKESHELL "/bin/bash"
+test "$JDS_CBE_ENV_QUIET" != 1  && \
+    echo Setting MAKESHELL=$MAKESHELL
+
+setenv MAKE "$CBE_PREFIX/bin/make"
+test "$JDS_CBE_ENV_QUIET" != 1  && \
+    echo Setting MAKE=$MAKE
+
+setenv M4 "$CBE_PREFIX/bin/m4"
+test "$JDS_CBE_ENV_QUIET" != 1  && \
+    echo Setting M4=$M4
+
+set bash_opts="--norc --noprofile"
+set ksh_opts="-p"
+set ksh93_opts="-p"
+set csh_opts="-f"
+set tcsh_opts="-f"
+
+if ( $?SHELL ) then
+    set subshell=${SHELL}
+else
+    set subshell=/bin/csh
+endif
+
+set subshell_name=`basename $subshell`
+eval set subshell_opts='"$'${subshell_name}_opts'"'
+
+if ( $?0 ) then
+    set mybasename=`basename $0`
+else
+    set mybasename=/bin/csh
+endif
+
+if ( $mybasename == env.csh ) then
+    if ( $invalid_env == yes ) then
+	exit 1
+    endif
+    echo Starting subshell $subshell $subshell_opts
+    exec $subshell $subshell_opts
+endif
+
+# return value when sourcing this script
+test $invalid_env != yes
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/bin/env.sh	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,161 @@
+#!/bin/bash
+#
+# Script for setting up the shell environment for using the Desktop CBE
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License").  You may not use this file except in compliance
+# with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+
+test "x$JDS_CBE_ENV_QUIET" != x1  && \
+    echo "Desktop CBE version 1.8.0"
+
+myarch=`uname -p`
+if [ $myarch = "i386" ]; then
+  myarch=x86
+fi
+
+save_IFS="$IFS"
+IFS=" 
+"
+ENV_SET=`env | grep '^[a-zA-Z0-9_]*=' | cut -f1 -d=`
+if [ "x$ZSH_VERSION" != x ]; then
+    set -o sh_word_split
+else
+    for var in $ENV_SET; do
+	case $var in
+	PS1|PS2|HZ|TERM|SHELL|OLDPWD|PATH|MAIL|PWD|TZ|SHLVL|HOME|LOGNAME|PRINTER|HOST|HOSTNAME|HOSTTYPE|_|CC|CXX|EDITOR|SVN_EDITOR|SSH_*|DISPLAY|LESS*|LS_COLORS|LS_OPTIONS|TERMINFO|PAGER|MANPATH|VISUAL|http_proxy|https_proxy|ftp_proxy|XAUTHORITY|CVSROOT|CVS_RSH|DBUS_*|SESSION_MANAGER|JDS_CBE_ENV_QUIET)
+	    ;;
+	*)
+	    test "x$JDS_CBE_ENV_QUIET" != x1 && echo Unsetting $var
+            unset $var
+            ;;
+        esac
+    done
+fi
+
+IFS="$save_IFS"
+
+CBE_PREFIX=/opt/dtbld
+
+invalid_env=no
+if [ "x$1" != x ]; then
+    if [ -f "$CBE_PREFIX/lib/cbe-env/$1" ]; then
+	. "$CBE_PREFIX/lib/cbe-env/$1"
+	export CC
+	export CXX
+    else
+	echo "ERROR: Unknown CBE environment: $1" 1>&2
+	echo
+	echo "Valid choices are: "
+	/bin/ls -l "$CBE_PREFIX/lib/cbe-env" | cut -c54- | /bin/sed -e 's/ /	/'
+	echo
+	invalid_env=yes
+    fi
+else
+    if [ -f "$CBE_PREFIX/lib/cbe-env/default" ]; then
+	. "$CBE_PREFIX/lib/cbe-env/default"
+	export CC
+	export CXX
+    else
+	echo "ERROR: Default CBE environment missing" 1>&2
+	invalid_env=yes
+    fi
+fi
+
+if [ $invalid_env != yes ]; then
+    # backward compat with old JDS CBEs:
+    CC32="$CC"
+    CC64="$CC"
+    CXX32="$CXX"
+    CXX64="$CXX"
+    export CC32 CC64 CXX32 CXX64
+
+    if [ "x$JDS_CBE_ENV_QUIET" != x1 ]; then
+	echo Using CC=$CC
+	echo Using CXX=$CXX
+    fi
+
+    CCDIR=`dirname $CC`
+    if [ $CCDIR != /usr/bin ]; then
+	PATH="$CBE_PREFIX/bin:$CCDIR:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin"
+    else
+	PATH="$CBE_PREFIX/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin"
+    fi
+
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+	echo Setting PATH=$PATH
+    export PATH
+    
+    CONFIG_SHELL="/bin/bash"
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+    echo Setting CONFIG_SHELL=$CONFIG_SHELL
+    export CONFIG_SHELL
+
+    MAKESHELL="/bin/bash"
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+    echo Setting MAKESHELL=$MAKESHELL
+    export MAKESHELL
+
+    MAKE="$CBE_PREFIX/bin/make"
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+    echo Setting MAKE=$MAKE
+    export MAKE
+
+    M4="$CBE_PREFIX/bin/m4"
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+    echo Setting M4=$M4
+    export M4
+fi
+
+bash_opts="--norc --noprofile"
+ksh_opts="-p"
+ksh93_opts="-p"
+csh_opts="-f"
+tcsh_opts="-f"
+
+subshell=${SHELL:-/bin/bash}
+subshell_name=`basename $subshell`
+eval subshell_opts='"$'${subshell_name}_opts'"'
+
+# start a subshell if the script is directly executed, or if the
+# shell is zsh.  (with zsh, it's not possible to tell if the script
+# is being sourced or executed, or at least I couldn't figure out
+# how)
+if [ x`/bin/basename $0` = xenv.sh ]; then
+    if [ $invalid_env = no ]; then
+	if [ "x$ZSH_VERSION" = x ]; then
+	    echo Starting subshell $subshell $subshell_opts
+	    exec $subshell $subshell_opts
+	else
+	    echo Starting subshell $subshell $subshell_opts
+	    $subshell $subshell_opts
+	fi
+    else
+	/bin/false
+    fi
+else
+    # set return value
+    test $invalid_env != yes
+fi
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/bin/env_include.sh	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,129 @@
+#!/bin/bash
+#
+# Script for setting up the shell environment for using the Desktop CBE
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License").  You may not use this file except in compliance
+# with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+
+init_dt_cbe () {
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+	echo "Desktop CBE version 1.8.0"
+
+    myarch=`uname -p`
+    if [ $myarch = "i386" ]; then
+	myarch=x86
+    fi
+
+    save_IFS="$IFS"
+    IFS=" 
+"
+    ENV_SET=`env | grep '^[a-zA-Z0-9_]*=' | cut -f1 -d=`
+    if [ "x$ZSH_VERSION" != x ]; then
+	set -o sh_word_split
+    else
+	for var in $ENV_SET; do
+	    case $var in
+		PS1|PS2|HZ|TERM|SHELL|OLDPWD|PATH|MAIL|PWD|TZ|SHLVL|HOME|LOGNAME|PRINTER|HOSTNAME|_|CC|CXX|EDITOR|SSH_*|DISPLAY|LESS*|LS_COLORS|LS_OPTIONS|TERMINFO|PAGER|MANPATH|VISUAL|http_proxy|https_proxy|ftp_proxy|XAUTHORITY|CVSROOT|CVS_RSH|DBUS_*|SESSION_MANAGER|JDS_CBE_ENV_QUIET)
+		;;
+	    *)
+		test "x$JDS_CBE_ENV_QUIET" != x1 && echo Unsetting $var
+                unset $var
+                ;;
+            esac
+        done
+    fi
+
+    IFS="$save_IFS"
+    CBE_PREFIX=/opt/dtbld
+
+    if [ "x$1" != x ]; then
+	if [ -f "$CBE_PREFIX/lib/cbe-env/$1" ]; then
+	    . "$CBE_PREFIX/lib/cbe-env/$1"
+	    export CC
+	    export CXX
+	else
+	    echo "ERROR: Unknown CBE environment: $1" 1>&2
+	    echo
+	    echo "Valid choices are: "
+	    /bin/ls -l "$CBE_PREFIX/lib/cbe-env" | cut -c54- | /bin/sed -e 's/ /	/'
+	    echo
+	    return 1
+	fi
+    else
+	if [ -f "$CBE_PREFIX/lib/cbe-env/default" ]; then
+	    . "$CBE_PREFIX/lib/cbe-env/default"
+	    export CC
+	    export CXX
+	else
+	    echo "ERROR: Default CBE environment missing" 1>&2
+	    return 1
+	fi
+    fi
+
+    # backward compat with old JDS CBEs:
+    CC32="$CC"
+    CC64="$CC"
+    CXX32="$CXX"
+    CXX64="$CXX"
+    export CC32 CC64 CXX32 CXX64
+
+    if [ "x$JDS_CBE_ENV_QUIET" != x1 ]; then
+	echo Using CC=$CC
+	echo Using CXX=$CXX
+    fi
+
+    CCDIR=`dirname $CC`
+    if [ $CCDIR != /usr/bin ]; then
+	PATH="$CBE_PREFIX/bin:$CCDIR:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin"
+    else
+	PATH="$CBE_PREFIX/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin"
+    fi
+
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+	echo Setting PATH=$PATH
+    export PATH
+    
+    CONFIG_SHELL="/bin/bash"
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+	echo Setting CONFIG_SHELL=$CONFIG_SHELL
+    export CONFIG_SHELL
+
+    MAKESHELL="/bin/bash"
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+	echo Setting MAKESHELL=$MAKESHELL
+    export MAKESHELL
+
+    MAKE="$CBE_PREFIX/bin/make"
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+	echo Setting MAKE=$MAKE
+    export MAKE
+
+    M4="$CBE_PREFIX/bin/m4"
+    test "x$JDS_CBE_ENV_QUIET" != x1  && \
+	echo Setting M4=$M4
+    export M4
+
+    return 0
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/bin/gendiff	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+[ -z "$1" -o -z "$2" ] && {
+# usage
+  echo "usage: $0 <directory> <diff-extension>" 1>&2
+  exit 1
+}
+
+find $1 \( -name "*$2" -o -name ".*$2" \) -print |
+while read f; do
+	diff -u $f `echo $f | sed s/$2\$//`
+done
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/bin/ld-wrapper	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,3 @@
+#!/bin/ksh
+
+exec /usr/ccs/bin/ld -z ignore -Bdirect -z combreloc "${@}"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/cbe-env/gcc3	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,8 @@
+# Build environment config file for the Desktop CBE
+CC_name='GNU gcc'
+CC_version='3.4.3'
+CC_release='3'
+CC_rev=''
+cc_dir='/usr/bin'
+CC='/usr/bin/gcc'
+CXX='/usr/bin/g++'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/cbe-env/gcc3.1	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,8 @@
+# Build environment config file for the Desktop CBE
+CC_name='GNU gcc'
+CC_version='3.4.3'
+CC_release='3'
+CC_rev=''
+cc_dir='/usr/sfw/bin'
+CC='/usr/sfw/bin/gcc'
+CXX='/usr/sfw/bin/g++'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/cbe-env/sexp	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,8 @@
+# Build environment config file for the Desktop CBE
+CC_name='Sun Studio Express'
+CC_version='5.10'
+CC_release='Ceres'
+CC_rev='cc: Sun C 5.10 Patch 142363-03 2009/12/03'
+cc_dir='/opt/sunstudio12.1/bin'
+CC='/opt/sunstudio12.1/bin/cc'
+CXX='/opt/sunstudio12.1/bin/CC'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oi-extras/cbe/files/cbe-env/ss12	Thu May 05 16:49:14 2011 +0100
@@ -0,0 +1,8 @@
+# Build environment config file for the Desktop CBE
+CC_name='Sun Studio 12'
+CC_version='5.9'
+CC_release='Mars'
+CC_rev='cc: Sun C 5.9 Patch 124868-10 2009/04/30'
+cc_dir='/opt/SUNWspro/bin'
+CC='/opt/SUNWspro/bin/cc'
+CXX='/opt/SUNWspro/bin/CC'