1cdf0e10cSrcweir#! /bin/sh 245ef6fe1SAndrew Rist############################################################### 345ef6fe1SAndrew Rist# 445ef6fe1SAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 545ef6fe1SAndrew Rist# or more contributor license agreements. See the NOTICE file 645ef6fe1SAndrew Rist# distributed with this work for additional information 745ef6fe1SAndrew Rist# regarding copyright ownership. The ASF licenses this file 845ef6fe1SAndrew Rist# to you under the Apache License, Version 2.0 (the 945ef6fe1SAndrew Rist# "License"); you may not use this file except in compliance 1045ef6fe1SAndrew Rist# with the License. You may obtain a copy of the License at 1145ef6fe1SAndrew Rist# 1245ef6fe1SAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 1345ef6fe1SAndrew Rist# 1445ef6fe1SAndrew Rist# Unless required by applicable law or agreed to in writing, 1545ef6fe1SAndrew Rist# software distributed under the License is distributed on an 1645ef6fe1SAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1745ef6fe1SAndrew Rist# KIND, either express or implied. See the License for the 1845ef6fe1SAndrew Rist# specific language governing permissions and limitations 1945ef6fe1SAndrew Rist# under the License. 2045ef6fe1SAndrew Rist# 2145ef6fe1SAndrew Rist############################################################### 22cdf0e10cSrcweir 23cdf0e10cSrcweir# This script starts a new shell and sets all enviroment variables, which 24cdf0e10cSrcweir# are necessary for building the examples of the Office Development Kit. 25cdf0e10cSrcweir# The Script was developed for the operating systems Solaris, Linux and MacOS. 26cdf0e10cSrcweir 27cdf0e10cSrcweir# The SDK name 28cdf0e10cSrcweirOO_SDK_NAME=@OO_SDK_NAME@ 29cdf0e10cSrcweirexport OO_SDK_NAME 30cdf0e10cSrcweir 31cdf0e10cSrcweir# Installation directory of the Software Development Kit. 32599cc5b4SOliver-Rainer Wittmann# Example: OO_SDK_HOME=/opt/openoffice/basis4.0/sdk 33cdf0e10cSrcweirOO_SDK_HOME='@OO_SDK_HOME@' 34cdf0e10cSrcweir 35cdf0e10cSrcweir# Office installation directory. 36599cc5b4SOliver-Rainer Wittmann# Example: OFFICE_HOME=/opt/openoffice4 37cdf0e10cSrcweirOFFICE_HOME='@OFFICE_HOME@' 38cdf0e10cSrcweir 39cdf0e10cSrcweir# Directory of the make command. 40cdf0e10cSrcweir# Example: OO_SDK_MAKE_HOME=/usr/bin 41cdf0e10cSrcweirOO_SDK_MAKE_HOME=@OO_SDK_MAKE_HOME@ 42cdf0e10cSrcweir 43cdf0e10cSrcweir# Directory of the zip command. 44cdf0e10cSrcweir# Example: OO_SDK_ZIP_HOME=/usr/bin 45cdf0e10cSrcweirOO_SDK_ZIP_HOME=@OO_SDK_ZIP_HOME@ 46cdf0e10cSrcweir 47985d02c7SAriel Constenla-Haile# Directory of the cat command. 48985d02c7SAriel Constenla-Haile# Example: OO_SDK_CAT_HOME=/usr/bin 49985d02c7SAriel Constenla-HaileOO_SDK_CAT_HOME=@OO_SDK_CAT_HOME@ 50985d02c7SAriel Constenla-Haile 51985d02c7SAriel Constenla-Haile# Directory of the sed command. 52985d02c7SAriel Constenla-Haile# Example: OO_SDK_SED_HOME=/usr/bin 53985d02c7SAriel Constenla-HaileOO_SDK_SED_HOME=@OO_SDK_SED_HOME@ 54985d02c7SAriel Constenla-Haile 55cdf0e10cSrcweir# Directory of the C++ compiler. 56cdf0e10cSrcweir# Example: OO_SDK_CPP_HOME=/usr/bin 57cdf0e10cSrcweirOO_SDK_CPP_HOME=@OO_SDK_CPP_HOME@ 58cdf0e10cSrcweir 59cdf0e10cSrcweir# Solaris only 60cdf0e10cSrcweirOO_SDK_CC_55_OR_HIGHER=@OO_SDK_CC_55_OR_HIGHER@ 61cdf0e10cSrcweir 62cdf0e10cSrcweir# Directory of the Java SDK. 63cdf0e10cSrcweir# Example: OO_SDK_JAVA_HOME=/usr/jdk/jdk1.6.0_10 64cdf0e10cSrcweirOO_SDK_JAVA_HOME=@OO_SDK_JAVA_HOME@ 65cdf0e10cSrcweir 66ed9d7cbeSJürgen Schmidt# Directory of Boost (optional, C++ only) 67ed9d7cbeSJürgen Schmidt# Example: OO_SDK_BOOST_HOME=/opt/local/boost_1_48_0 68ed9d7cbeSJürgen SchmidtOO_SDK_BOOST_HOME=@OO_SDK_BOOST_HOME@ 69ed9d7cbeSJürgen Schmidtexport OO_SDK_BOOST_HOME 70ed9d7cbeSJürgen Schmidt 71cdf0e10cSrcweir# Special output directory 72cdf0e10cSrcweir# Example: OO_SDK_OUTPUT_DIR=$HOME 73cdf0e10cSrcweirOO_SDK_OUTPUT_DIR=@OO_SDK_OUTPUT_DIR@ 74cdf0e10cSrcweir 75cdf0e10cSrcweir# Environment variable to enable auto deployment of example components 76cdf0e10cSrcweir# Example: SDK_AUTO_DEPLOYMENT=YES 77cdf0e10cSrcweirSDK_AUTO_DEPLOYMENT=@SDK_AUTO_DEPLOYMENT@ 78cdf0e10cSrcweirexport SDK_AUTO_DEPLOYMENT 79cdf0e10cSrcweir 80ff3f4ebcSOliver-Rainer Wittmann# Check installation path for the Apache OpenOffice Development Kit. 81cdf0e10cSrcweirif [ -z "${OO_SDK_HOME}" ] 82cdf0e10cSrcweirthen 83cdf0e10cSrcweir echo Error: Please insert a correct value for the variable OO_SDK_HOME. 84cdf0e10cSrcweir exit 0 85cdf0e10cSrcweirfi 86cdf0e10cSrcweir 87cdf0e10cSrcweirexport OO_SDK_HOME 88cdf0e10cSrcweir 89cdf0e10cSrcweir# Check installation path for the office. 90ed9d7cbeSJürgen Schmidtif [ -z "${OFFICE_HOME}" ] 91cdf0e10cSrcweirthen 92ed9d7cbeSJürgen Schmidt echo 'Error: Please set either the environment variable OFFICE_HOME.' 93cdf0e10cSrcweir exit 0 94cdf0e10cSrcweirfi 95cdf0e10cSrcweir 96cdf0e10cSrcweir# Get the operating system. 97cdf0e10cSrcweirsdk_platform=`${OO_SDK_HOME}/config.guess | cut -d"-" -f3,4` 98cdf0e10cSrcweir 99cdf0e10cSrcweir# Set the directory name. 100cdf0e10cSrcweirprogramdir=program 101cdf0e10cSrcweirjavadir=bin 102cdf0e10cSrcweircase ${sdk_platform} in 103cdf0e10cSrcweir darwin*) 104cdf0e10cSrcweir programdir="Contents/MacOS" 105cdf0e10cSrcweir javacdir=Commands 106cdf0e10cSrcweir ;; 107cdf0e10cSrcweiresac 108cdf0e10cSrcweir 109cdf0e10cSrcweir# Set office program path (only set when using an Office). 110cdf0e10cSrcweirif [ "${OFFICE_HOME}" ] 111cdf0e10cSrcweirthen 112cdf0e10cSrcweir OFFICE_PROGRAM_PATH=${OFFICE_HOME}/${programdir} 113cdf0e10cSrcweir export OFFICE_PROGRAM_PATH 114cdf0e10cSrcweirfi 115cdf0e10cSrcweir 116cdf0e10cSrcweir# Set UNO path, necessary to ensure that the cpp examples using the 117cdf0e10cSrcweir# new UNO bootstrap mechanism use the configured office installation (only set 118cdf0e10cSrcweir# when using an Office). 119cdf0e10cSrcweirif [ "${OFFICE_HOME}" ] 120cdf0e10cSrcweirthen 121cdf0e10cSrcweir UNO_PATH=${OFFICE_PROGRAM_PATH} 122cdf0e10cSrcweir export UNO_PATH 123cdf0e10cSrcweirfi 124cdf0e10cSrcweir 125ed9d7cbeSJürgen SchmidtOO_SDK_OFFICE_BIN_DIR=${OFFICE_PROGRAM_PATH} 126ed9d7cbeSJürgen SchmidtOO_SDK_OFFICE_LIB_DIR=${OFFICE_PROGRAM_PATH} 127ed9d7cbeSJürgen SchmidtOO_SDK_OFFICE_JAVA_DIR=${OFFICE_PROGRAM_PATH}/classes 128b3ba5bc7SJürgen Schmidt 129ed9d7cbeSJürgen Schmidtexport OO_SDK_OFFICE_BIN_DIR 130ed9d7cbeSJürgen Schmidtexport OO_SDK_OFFICE_LIB_DIR 131ed9d7cbeSJürgen Schmidtexport OO_SDK_OFFICE_JAVA_DIR 132cdf0e10cSrcweir 133cdf0e10cSrcweirOO_SDK_OUT=$OO_SDK_HOME 134cdf0e10cSrcweir# Prepare appropriate output directory. 135cdf0e10cSrcweirif [ -n "${OO_SDK_OUTPUT_DIR}" ] 136cdf0e10cSrcweirthen 137cdf0e10cSrcweir OO_SDK_OUT=${OO_SDK_OUTPUT_DIR}/${OO_SDK_NAME} 138cdf0e10cSrcweir export OO_SDK_OUT 139cdf0e10cSrcweirfi 140cdf0e10cSrcweir 141cdf0e10cSrcweir# Set the directory name. 142cdf0e10cSrcweircase ${sdk_platform} in 143cdf0e10cSrcweir solaris*) 144cdf0e10cSrcweir sdk_proctype=`${OO_SDK_HOME}/config.guess | cut -d"-" -f1` 145cdf0e10cSrcweir if [ "${sdk_proctype}" = "sparc" ] 146cdf0e10cSrcweir then 147cdf0e10cSrcweir directoryname=solsparc 148cdf0e10cSrcweir platform='Solaris Sparc' 149cdf0e10cSrcweir else 150cdf0e10cSrcweir directoryname=solintel 151cdf0e10cSrcweir platform='Solaris x86' 152cdf0e10cSrcweir fi 153cdf0e10cSrcweir comid=C52 154cdf0e10cSrcweir soext=so 155cdf0e10cSrcweir exampleout=SOLARISexample.out 156cdf0e10cSrcweir stldebug=_debug 157ed9d7cbeSJürgen Schmidt LD_LIBRARY_PATH=${OO_SDK_HOME}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_OFFICE_LIB_DIR}:.:${LD_LIBRARY_PATH} 158cdf0e10cSrcweir export LD_LIBRARY_PATH 159cdf0e10cSrcweir ;; 160cdf0e10cSrcweir 161cdf0e10cSrcweir darwin*) 162cdf0e10cSrcweir if [ -n "$OO_SDK_CPP_HOME" ] 163cdf0e10cSrcweir then 164789d489dSHerbert Dürr SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/clang++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1` 165cdf0e10cSrcweir export SDK_GXX_INCLUDE_PATH 166cdf0e10cSrcweir fi 167cdf0e10cSrcweir 168cdf0e10cSrcweir directoryname=macosx 169789d489dSHerbert Dürr comid=s5abi 170cdf0e10cSrcweir soext=dylib 171cdf0e10cSrcweir exampleout=MACOSXexample.out 172cdf0e10cSrcweir platform=MacOSX 173cdf0e10cSrcweir stldebug=_stldebug 174ed9d7cbeSJürgen Schmidt DYLD_LIBRARY_PATH=/usr/lib:${OO_SDK_OUT}/${directoryname}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_OFFICE_LIB_DIR}:.:${DYLD_LIBRARY_PATH} 175*ca3b41faSJim Jagielski # Below for https://bz.apache.org/ooo/show_bug.cgi?id=127965 176*ca3b41faSJim Jagielski PATH=${PATH}:/usr/local/bin 177cdf0e10cSrcweir export DYLD_LIBRARY_PATH 178cdf0e10cSrcweir ;; 179cdf0e10cSrcweir 180cdf0e10cSrcweir linux-gnu) 181cdf0e10cSrcweir if [ -n "$OO_SDK_CPP_HOME" ] 182cdf0e10cSrcweir then 183cdf0e10cSrcweir SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1` 184cdf0e10cSrcweir export SDK_GXX_INCLUDE_PATH 185cdf0e10cSrcweir fi 186cdf0e10cSrcweir 187cdf0e10cSrcweir directoryname=linux 188cdf0e10cSrcweir comid=gcc3 189cdf0e10cSrcweir soext=so 190cdf0e10cSrcweir exampleout=LINUXexample.out 191cdf0e10cSrcweir platform=Linux 192cdf0e10cSrcweir stldebug=_stldebug 193ed9d7cbeSJürgen Schmidt LD_LIBRARY_PATH=${OO_SDK_HOME}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_OFFICE_LIB_DIR}:.:${LD_LIBRARY_PATH} 194cdf0e10cSrcweir export LD_LIBRARY_PATH 195cdf0e10cSrcweir ;; 196cdf0e10cSrcweir 197cdf0e10cSrcweir freebsd*) 198cdf0e10cSrcweir if [ -n "$OO_SDK_CPP_HOME" ] 199cdf0e10cSrcweir then 200cdf0e10cSrcweir SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1` 201cdf0e10cSrcweir export SDK_GXX_INCLUDE_PATH 202cdf0e10cSrcweir fi 203cdf0e10cSrcweir 204cdf0e10cSrcweir directoryname=freebsd 205cdf0e10cSrcweir comid=gcc3 206cdf0e10cSrcweir soext=so 207cdf0e10cSrcweir exampleout=FREEBSDexample.out 208cdf0e10cSrcweir platform=FreeBSD 209cdf0e10cSrcweir stldebug=_stldebug 210ed9d7cbeSJürgen Schmidt LD_LIBRARY_PATH=${OO_SDK_HOME}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_OFFICE_LIB_DIR}:.:${LD_LIBRARY_PATH} 211cdf0e10cSrcweir export LD_LIBRARY_PATH 212cdf0e10cSrcweir 213cdf0e10cSrcweir if [ -e "/sbin/sysctl" ] 214cdf0e10cSrcweir then 215cdf0e10cSrcweir OSVERSION=`/sbin/sysctl -n kern.osreldate` 216cdf0e10cSrcweir else 217cdf0e10cSrcweir OSVERSION=`/usr/sbin/sysctl -n kern.osreldate` 218cdf0e10cSrcweir fi 219cdf0e10cSrcweir if [ $OSVERSION -lt 500016 ] 220cdf0e10cSrcweir then 221cdf0e10cSrcweir PTHREAD_CFLAGS=-D_THREAD_SAFE 222cdf0e10cSrcweir PTHREAD_LIBS=-pthread 223cdf0e10cSrcweir export PTHREAD_CFLAGS 224cdf0e10cSrcweir export PTHREAD_LIBS 225cdf0e10cSrcweir elif [ $OSVERSION -lt 502102 ] 226cdf0e10cSrcweir then 227cdf0e10cSrcweir PTHREAD_CFLAGS=-D_THREAD_SAFE 228cdf0e10cSrcweir PTHREAD_LIBS=-lc_r 229cdf0e10cSrcweir export PTHREAD_CFLAGS 230cdf0e10cSrcweir export PTHREAD_LIBS 231cdf0e10cSrcweir else 232cdf0e10cSrcweir PTHREAD_LIBS=-pthread 233cdf0e10cSrcweir export PTHREAD_LIBS 234cdf0e10cSrcweir fi 235cdf0e10cSrcweir ;; 236cdf0e10cSrcweiresac 237cdf0e10cSrcweir 238cdf0e10cSrcweir# Add directory of the SDK tools to the path. 239ed9d7cbeSJürgen SchmidtPATH=${OO_SDK_HOME}/bin:${OO_SDK_OUT}/${exampleout}/bin:${OFFICE_PROGRAM_PATH}:.:${PATH} 240cdf0e10cSrcweir 241cdf0e10cSrcweir# Set the classpath 242ed9d7cbeSJürgen SchmidtCLASSPATH=${OO_SDK_OFFICE_JAVA_DIR}/juh.jar:${OO_SDK_OFFICE_JAVA_DIR}/jurt.jar:${OO_SDK_OFFICE_JAVA_DIR}/ridl.jar:${OO_SDK_OFFICE_JAVA_DIR}/unoloader.jar:${OO_SDK_OFFICE_JAVA_DIR}/unoil.jar:${CLASSPATH} 243cdf0e10cSrcweirexport CLASSPATH 244cdf0e10cSrcweir 245cdf0e10cSrcweir 246cdf0e10cSrcweir# Add directory of the command make to the path, if necessary. 247cdf0e10cSrcweirif [ -n "${OO_SDK_MAKE_HOME}" ] 248cdf0e10cSrcweirthen 249cdf0e10cSrcweir PATH=${OO_SDK_MAKE_HOME}:${PATH} 250cdf0e10cSrcweir export OO_SDK_MAKE_HOME 251cdf0e10cSrcweirfi 252cdf0e10cSrcweir 253cdf0e10cSrcweir# Add directory of the zip tool to the path, if necessary. 254cdf0e10cSrcweirif [ -n "${OO_SDK_ZIP_HOME}" ] 255cdf0e10cSrcweirthen 256cdf0e10cSrcweir PATH=${OO_SDK_ZIP_HOME}:${PATH} 257cdf0e10cSrcweir export OO_SDK_ZIP_HOME 258cdf0e10cSrcweirfi 259cdf0e10cSrcweir 260985d02c7SAriel Constenla-Haile# Add directory of the sed tool to the path, if necessary. 261985d02c7SAriel Constenla-Haileif [ -n "${OO_SDK_SED_HOME}" ] 262985d02c7SAriel Constenla-Hailethen 263985d02c7SAriel Constenla-Haile PATH=${OO_SDK_SED_HOME}:${PATH} 264985d02c7SAriel Constenla-Haile export OO_SDK_SED_HOME 265985d02c7SAriel Constenla-Hailefi 266985d02c7SAriel Constenla-Haile 267985d02c7SAriel Constenla-Haile# Add directory of the cat tool to the path, if necessary. 268985d02c7SAriel Constenla-Haileif [ -n "${OO_SDK_CAT_HOME}" ] 269985d02c7SAriel Constenla-Hailethen 270985d02c7SAriel Constenla-Haile PATH=${OO_SDK_CAT_HOME}:${PATH} 271985d02c7SAriel Constenla-Haile export OO_SDK_CAT_HOME 272985d02c7SAriel Constenla-Hailefi 273985d02c7SAriel Constenla-Haile 274cdf0e10cSrcweir# Add directory of the C++ tools to the path, if necessary. 275cdf0e10cSrcweirif [ -n "${OO_SDK_CPP_HOME}" ] 276cdf0e10cSrcweirthen 277cdf0e10cSrcweir PATH=${OO_SDK_CPP_HOME}:${PATH} 278cdf0e10cSrcweir export OO_SDK_CPP_HOME 279cdf0e10cSrcweir 280cdf0e10cSrcweir if [ -n "${OO_SDK_CC_55_OR_HIGHER}" ] 281cdf0e10cSrcweir then 282cdf0e10cSrcweir export OO_SDK_CC_55_OR_HIGHER 283cdf0e10cSrcweir fi 284cdf0e10cSrcweirfi 285cdf0e10cSrcweir 286cdf0e10cSrcweir# Add directory of the Java tools to the path, if necessary. 287cdf0e10cSrcweirif [ -n "${OO_SDK_JAVA_HOME}" ] 288cdf0e10cSrcweirthen 289cdf0e10cSrcweir PATH=${OO_SDK_JAVA_HOME}/${javadir}:${PATH} 290cdf0e10cSrcweir# JAVA_HOME=${OO_SDK_JAVA_HOME} 291cdf0e10cSrcweir# export JAVA_HOME 292cdf0e10cSrcweir export OO_SDK_JAVA_HOME 293cdf0e10cSrcweir 294cdf0e10cSrcweir export PATH 295cdf0e10cSrcweirfi 296cdf0e10cSrcweir 297cdf0e10cSrcweirexport PATH 298cdf0e10cSrcweir 299cdf0e10cSrcweirif [ "${platform}" = "MacOSX" ] 300cdf0e10cSrcweirthen 301cdf0e10cSrcweir# For URE, prepare symbolic links for libraries: 302cdf0e10cSrcweir# Only necessary on MacOSX, on other Unix systems the links are already prepared 303cdf0e10cSrcweir# in the SDK installation. 304cdf0e10cSrcweir 305cdf0e10cSrcweir# cleanup potential old links first 306cdf0e10cSrcweir rm -f "${OO_SDK_OUT}/${directoryname}/lib/libuno_cppu.${soext}" \ 307cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_cppuhelper${comid}.${soext}" \ 308cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_sal.${soext}" \ 309cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_salhelper${comid}.${soext}" \ 310cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_purpenvhelper${comid}.${soext}" 311cdf0e10cSrcweir 312cdf0e10cSrcweir# prepare links 313b3ba5bc7SJürgen Schmidt if [ "${OFFICE_HOME}" ] 314cdf0e10cSrcweir then 315cdf0e10cSrcweir mkdir -p "${OO_SDK_OUT}/${directoryname}/lib" 316ed9d7cbeSJürgen Schmidt ln -s "${OO_SDK_OFFICE_LIB_DIR}/libuno_cppu.${soext}.3" \ 317cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_cppu.${soext}" 318ed9d7cbeSJürgen Schmidt ln -s "${OO_SDK_OFFICE_LIB_DIR}/libuno_cppuhelper${comid}.${soext}.3" \ 319cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_cppuhelper${comid}.${soext}" 320ed9d7cbeSJürgen Schmidt ln -s "${OO_SDK_OFFICE_LIB_DIR}/libuno_sal.${soext}.3" \ 321cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_sal.${soext}" 322ed9d7cbeSJürgen Schmidt ln -s "${OO_SDK_OFFICE_LIB_DIR}/libuno_salhelper${comid}.${soext}.3" \ 323cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_salhelper${comid}.${soext}" 324ed9d7cbeSJürgen Schmidt ln -s "${OO_SDK_OFFICE_LIB_DIR}/libuno_purpenvhelper${comid}.${soext}.3" \ 325cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_purpenvhelper${comid}.${soext}" 326cdf0e10cSrcweir 327cdf0e10cSrcweir fi 328cdf0e10cSrcweirfi 329cdf0e10cSrcweir 330cdf0e10cSrcweir 331cdf0e10cSrcweir# Prepare shell with all necessary environment variables. 332cdf0e10cSrcweirecho 333cdf0e10cSrcweirecho " ************************************************************************" 334985d02c7SAriel Constenla-Haileecho " *" 335985d02c7SAriel Constenla-Haileecho " * SDK environment is prepared for ${platform}" 336985d02c7SAriel Constenla-Haileecho " *" 337cdf0e10cSrcweirecho " * SDK = $OO_SDK_HOME" 338cdf0e10cSrcweirecho " * Office = $OFFICE_HOME" 339cdf0e10cSrcweirecho " * Make = $OO_SDK_MAKE_HOME" 340cdf0e10cSrcweirecho " * Zip = $OO_SDK_ZIP_HOME" 341985d02c7SAriel Constenla-Haileecho " * cat = $OO_SDK_CAT_HOME" 342985d02c7SAriel Constenla-Haileecho " * sed = $OO_SDK_SED_HOME" 343cdf0e10cSrcweirecho " * C++ Compiler = $OO_SDK_CPP_HOME" 344cdf0e10cSrcweirecho " * Java = $OO_SDK_JAVA_HOME" 345ed9d7cbeSJürgen Schmidtecho " * Boost = $OO_SDK_BOOST_HOME" 346cdf0e10cSrcweirecho " * SDK Output directory = $OO_SDK_OUT" 347cdf0e10cSrcweirecho " * Auto deployment = $SDK_AUTO_DEPLOYMENT" 348cdf0e10cSrcweirecho " *" 349*ca3b41faSJim Jagielskiecho " * PATH = $PATH" 350*ca3b41faSJim Jagielskiif [ "${platform}" = "MacOSX" ] 351*ca3b41faSJim Jagielskithen 352*ca3b41faSJim Jagielski echo " * DYLD_LIBRARY_PATH = $DYLD_LIBRARY_PATH" 353*ca3b41faSJim Jagielskielse 354*ca3b41faSJim Jagielski echo " * LD_LIBRARY_PATH = $LD_LIBRARY_PATH" 355*ca3b41faSJim Jagielskifi 356*ca3b41faSJim Jagielskiecho " *" 357cdf0e10cSrcweirecho " ************************************************************************" 358cdf0e10cSrcweir 359cdf0e10cSrcweirecho "]2;Shell prepared with the SDK environment" 360cdf0e10cSrcweir 361