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. 32cdf0e10cSrcweir# Example: OO_SDK_HOME=/opt/openoffice.org/basis3.0/sdk 33cdf0e10cSrcweirOO_SDK_HOME='@OO_SDK_HOME@' 34cdf0e10cSrcweir 35cdf0e10cSrcweir# Office installation directory. 36cdf0e10cSrcweir# Example: OFFICE_HOME=/opt/openoffice.org3 37cdf0e10cSrcweirOFFICE_HOME='@OFFICE_HOME@' 38cdf0e10cSrcweirOFFICE_BASE_HOME='@OFFICE_BASE_HOME@' 39cdf0e10cSrcweir 40cdf0e10cSrcweir# URE installation directory. 41cdf0e10cSrcweir# Example: OO_SDK_URE_HOME=/opt/openoffice.org/ure 42cdf0e10cSrcweirOO_SDK_URE_HOME='@OO_SDK_URE_HOME@' 43cdf0e10cSrcweirexport OO_SDK_URE_HOME 44cdf0e10cSrcweir 45cdf0e10cSrcweir# Directory of the make command. 46cdf0e10cSrcweir# Example: OO_SDK_MAKE_HOME=/usr/bin 47cdf0e10cSrcweirOO_SDK_MAKE_HOME=@OO_SDK_MAKE_HOME@ 48cdf0e10cSrcweir 49cdf0e10cSrcweir# Directory of the zip command. 50cdf0e10cSrcweir# Example: OO_SDK_ZIP_HOME=/usr/bin 51cdf0e10cSrcweirOO_SDK_ZIP_HOME=@OO_SDK_ZIP_HOME@ 52cdf0e10cSrcweir 53*985d02c7SAriel Constenla-Haile# Directory of the cat command. 54*985d02c7SAriel Constenla-Haile# Example: OO_SDK_CAT_HOME=/usr/bin 55*985d02c7SAriel Constenla-HaileOO_SDK_CAT_HOME=@OO_SDK_CAT_HOME@ 56*985d02c7SAriel Constenla-Haile 57*985d02c7SAriel Constenla-Haile# Directory of the sed command. 58*985d02c7SAriel Constenla-Haile# Example: OO_SDK_SED_HOME=/usr/bin 59*985d02c7SAriel Constenla-HaileOO_SDK_SED_HOME=@OO_SDK_SED_HOME@ 60*985d02c7SAriel Constenla-Haile 61cdf0e10cSrcweir# Directory of the C++ compiler. 62cdf0e10cSrcweir# Example: OO_SDK_CPP_HOME=/usr/bin 63cdf0e10cSrcweirOO_SDK_CPP_HOME=@OO_SDK_CPP_HOME@ 64cdf0e10cSrcweir 65cdf0e10cSrcweir# Solaris only 66cdf0e10cSrcweirOO_SDK_CC_55_OR_HIGHER=@OO_SDK_CC_55_OR_HIGHER@ 67cdf0e10cSrcweir 68cdf0e10cSrcweir# Directory of the Java SDK. 69cdf0e10cSrcweir# Example: OO_SDK_JAVA_HOME=/usr/jdk/jdk1.6.0_10 70cdf0e10cSrcweirOO_SDK_JAVA_HOME=@OO_SDK_JAVA_HOME@ 71cdf0e10cSrcweir 72cdf0e10cSrcweir# Special output directory 73cdf0e10cSrcweir# Example: OO_SDK_OUTPUT_DIR=$HOME 74cdf0e10cSrcweirOO_SDK_OUTPUT_DIR=@OO_SDK_OUTPUT_DIR@ 75cdf0e10cSrcweir 76cdf0e10cSrcweir# Environment variable to enable auto deployment of example components 77cdf0e10cSrcweir# Example: SDK_AUTO_DEPLOYMENT=YES 78cdf0e10cSrcweirSDK_AUTO_DEPLOYMENT=@SDK_AUTO_DEPLOYMENT@ 79cdf0e10cSrcweirexport SDK_AUTO_DEPLOYMENT 80cdf0e10cSrcweir 81cdf0e10cSrcweir# Check installation path for the OpenOffice Development Kit. 82cdf0e10cSrcweirif [ -z "${OO_SDK_HOME}" ] 83cdf0e10cSrcweirthen 84cdf0e10cSrcweir echo Error: Please insert a correct value for the variable OO_SDK_HOME. 85cdf0e10cSrcweir exit 0 86cdf0e10cSrcweirfi 87cdf0e10cSrcweir 88cdf0e10cSrcweirexport OO_SDK_HOME 89cdf0e10cSrcweir 90cdf0e10cSrcweir# Check installation path for the office. 91cdf0e10cSrcweirif [ -z "${OFFICE_HOME}" ] && [ -z "${OO_SDK_URE_HOME}" ] 92cdf0e10cSrcweirthen 93cdf0e10cSrcweir echo 'Error: Please set either the environment variable OFFICE_HOME or the' 94cdf0e10cSrcweir echo 'environment variable OO_SDK_URE_HOME.' 95cdf0e10cSrcweir exit 0 96cdf0e10cSrcweirfi 97cdf0e10cSrcweir 98cdf0e10cSrcweir# Get the operating system. 99cdf0e10cSrcweirsdk_platform=`${OO_SDK_HOME}/config.guess | cut -d"-" -f3,4` 100cdf0e10cSrcweir 101cdf0e10cSrcweir# Set the directory name. 102cdf0e10cSrcweirprogramdir=program 103cdf0e10cSrcweirjavadir=bin 104cdf0e10cSrcweircase ${sdk_platform} in 105cdf0e10cSrcweir darwin*) 106cdf0e10cSrcweir programdir="Contents/MacOS" 107cdf0e10cSrcweir javacdir=Commands 108cdf0e10cSrcweir ;; 109cdf0e10cSrcweiresac 110cdf0e10cSrcweir 111cdf0e10cSrcweir# Set office program path (only set when using an Office). 112cdf0e10cSrcweirif [ "${OFFICE_HOME}" ] 113cdf0e10cSrcweirthen 114cdf0e10cSrcweir OFFICE_PROGRAM_PATH=${OFFICE_HOME}/${programdir} 115cdf0e10cSrcweir export OFFICE_PROGRAM_PATH 116cdf0e10cSrcweirfi 117cdf0e10cSrcweir 118cdf0e10cSrcweir# Set office program path (only set when using an Office). 119cdf0e10cSrcweirif [ "${OFFICE_BASE_HOME}" ] 120cdf0e10cSrcweirthen 121cdf0e10cSrcweir OFFICE_BASE_PROGRAM_PATH=${OFFICE_BASE_HOME}/program 122cdf0e10cSrcweir export OFFICE_BASE_PROGRAM_PATH 123cdf0e10cSrcweirfi 124cdf0e10cSrcweir 125cdf0e10cSrcweir 126cdf0e10cSrcweir# Set UNO path, necessary to ensure that the cpp examples using the 127cdf0e10cSrcweir# new UNO bootstrap mechanism use the configured office installation (only set 128cdf0e10cSrcweir# when using an Office). 129cdf0e10cSrcweirif [ "${OFFICE_HOME}" ] 130cdf0e10cSrcweirthen 131cdf0e10cSrcweir UNO_PATH=${OFFICE_PROGRAM_PATH} 132cdf0e10cSrcweir export UNO_PATH 133cdf0e10cSrcweirfi 134cdf0e10cSrcweir 135cdf0e10cSrcweirif [ "${OO_SDK_URE_HOME}" ] 136cdf0e10cSrcweirthen 137cdf0e10cSrcweir OO_SDK_URE_BIN_DIR=${OO_SDK_URE_HOME}/bin 138cdf0e10cSrcweir OO_SDK_URE_LIB_DIR=${OO_SDK_URE_HOME}/lib 139cdf0e10cSrcweir OO_SDK_URE_JAVA_DIR=${OO_SDK_URE_HOME}/share/java 140cdf0e10cSrcweirelse 141cdf0e10cSrcweir OO_SDK_URE_BIN_DIR=${OFFICE_PROGRAM_PATH} 142cdf0e10cSrcweir OO_SDK_URE_LIB_DIR=${OFFICE_BASE_PROGRAM_PATH} 143cdf0e10cSrcweir OO_SDK_URE_JAVA_DIR=${OFFICE_BASE_PROGRAM_PATH}/classes 144cdf0e10cSrcweirfi 145cdf0e10cSrcweirexport OO_SDK_URE_BIN_DIR 146cdf0e10cSrcweirexport OO_SDK_URE_LIB_DIR 147cdf0e10cSrcweirexport OO_SDK_URE_JAVA_DIR 148cdf0e10cSrcweir 149cdf0e10cSrcweirOO_SDK_OUT=$OO_SDK_HOME 150cdf0e10cSrcweir# Prepare appropriate output directory. 151cdf0e10cSrcweirif [ -n "${OO_SDK_OUTPUT_DIR}" ] 152cdf0e10cSrcweirthen 153cdf0e10cSrcweir OO_SDK_OUT=${OO_SDK_OUTPUT_DIR}/${OO_SDK_NAME} 154cdf0e10cSrcweir export OO_SDK_OUT 155cdf0e10cSrcweirfi 156cdf0e10cSrcweir 157cdf0e10cSrcweir# Set the directory name. 158cdf0e10cSrcweircase ${sdk_platform} in 159cdf0e10cSrcweir solaris*) 160cdf0e10cSrcweir sdk_proctype=`${OO_SDK_HOME}/config.guess | cut -d"-" -f1` 161cdf0e10cSrcweir if [ "${sdk_proctype}" = "sparc" ] 162cdf0e10cSrcweir then 163cdf0e10cSrcweir directoryname=solsparc 164cdf0e10cSrcweir platform='Solaris Sparc' 165cdf0e10cSrcweir else 166cdf0e10cSrcweir directoryname=solintel 167cdf0e10cSrcweir platform='Solaris x86' 168cdf0e10cSrcweir fi 169cdf0e10cSrcweir comid=C52 170cdf0e10cSrcweir pltfrm=sunpro 171cdf0e10cSrcweir soext=so 172cdf0e10cSrcweir exampleout=SOLARISexample.out 173cdf0e10cSrcweir stldebug=_debug 174cdf0e10cSrcweir LD_LIBRARY_PATH=${OO_SDK_HOME}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${LD_LIBRARY_PATH} 175cdf0e10cSrcweir export LD_LIBRARY_PATH 176cdf0e10cSrcweir ;; 177cdf0e10cSrcweir 178cdf0e10cSrcweir darwin*) 179cdf0e10cSrcweir if [ -n "$OO_SDK_CPP_HOME" ] 180cdf0e10cSrcweir then 181cdf0e10cSrcweir SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1` 182cdf0e10cSrcweir export SDK_GXX_INCLUDE_PATH 183cdf0e10cSrcweir fi 184cdf0e10cSrcweir 185cdf0e10cSrcweir directoryname=macosx 186cdf0e10cSrcweir comid=gcc3 187cdf0e10cSrcweir pltfrm=gcc 188cdf0e10cSrcweir soext=dylib 189cdf0e10cSrcweir exampleout=MACOSXexample.out 190cdf0e10cSrcweir platform=MacOSX 191cdf0e10cSrcweir stldebug=_stldebug 192cdf0e10cSrcweir DYLD_LIBRARY_PATH=${OO_SDK_OUT}/${directoryname}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${DYLD_LIBRARY_PATH} 193cdf0e10cSrcweir export DYLD_LIBRARY_PATH 194cdf0e10cSrcweir ;; 195cdf0e10cSrcweir 196cdf0e10cSrcweir linux-gnu) 197cdf0e10cSrcweir if [ -n "$OO_SDK_CPP_HOME" ] 198cdf0e10cSrcweir then 199cdf0e10cSrcweir SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1` 200cdf0e10cSrcweir export SDK_GXX_INCLUDE_PATH 201cdf0e10cSrcweir fi 202cdf0e10cSrcweir 203cdf0e10cSrcweir directoryname=linux 204cdf0e10cSrcweir comid=gcc3 205cdf0e10cSrcweir pltfrm=gcc 206cdf0e10cSrcweir soext=so 207cdf0e10cSrcweir exampleout=LINUXexample.out 208cdf0e10cSrcweir platform=Linux 209cdf0e10cSrcweir stldebug=_stldebug 210cdf0e10cSrcweir LD_LIBRARY_PATH=${OO_SDK_HOME}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${LD_LIBRARY_PATH} 211cdf0e10cSrcweir export LD_LIBRARY_PATH 212cdf0e10cSrcweir ;; 213cdf0e10cSrcweir 214cdf0e10cSrcweir freebsd*) 215cdf0e10cSrcweir if [ -n "$OO_SDK_CPP_HOME" ] 216cdf0e10cSrcweir then 217cdf0e10cSrcweir SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1` 218cdf0e10cSrcweir export SDK_GXX_INCLUDE_PATH 219cdf0e10cSrcweir fi 220cdf0e10cSrcweir 221cdf0e10cSrcweir directoryname=freebsd 222cdf0e10cSrcweir comid=gcc3 223cdf0e10cSrcweir pltfrm=gcc 224cdf0e10cSrcweir soext=so 225cdf0e10cSrcweir exampleout=FREEBSDexample.out 226cdf0e10cSrcweir platform=FreeBSD 227cdf0e10cSrcweir stldebug=_stldebug 228cdf0e10cSrcweir LD_LIBRARY_PATH=${OO_SDK_HOME}/lib:${OO_SDK_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${LD_LIBRARY_PATH} 229cdf0e10cSrcweir export LD_LIBRARY_PATH 230cdf0e10cSrcweir 231cdf0e10cSrcweir if [ -e "/sbin/sysctl" ] 232cdf0e10cSrcweir then 233cdf0e10cSrcweir OSVERSION=`/sbin/sysctl -n kern.osreldate` 234cdf0e10cSrcweir else 235cdf0e10cSrcweir OSVERSION=`/usr/sbin/sysctl -n kern.osreldate` 236cdf0e10cSrcweir fi 237cdf0e10cSrcweir if [ $OSVERSION -lt 500016 ] 238cdf0e10cSrcweir then 239cdf0e10cSrcweir PTHREAD_CFLAGS=-D_THREAD_SAFE 240cdf0e10cSrcweir PTHREAD_LIBS=-pthread 241cdf0e10cSrcweir export PTHREAD_CFLAGS 242cdf0e10cSrcweir export PTHREAD_LIBS 243cdf0e10cSrcweir elif [ $OSVERSION -lt 502102 ] 244cdf0e10cSrcweir then 245cdf0e10cSrcweir PTHREAD_CFLAGS=-D_THREAD_SAFE 246cdf0e10cSrcweir PTHREAD_LIBS=-lc_r 247cdf0e10cSrcweir export PTHREAD_CFLAGS 248cdf0e10cSrcweir export PTHREAD_LIBS 249cdf0e10cSrcweir else 250cdf0e10cSrcweir PTHREAD_LIBS=-pthread 251cdf0e10cSrcweir export PTHREAD_LIBS 252cdf0e10cSrcweir fi 253cdf0e10cSrcweir ;; 254cdf0e10cSrcweiresac 255cdf0e10cSrcweir 256cdf0e10cSrcweir# Add directory of the SDK tools to the path. 257cdf0e10cSrcweirPATH=${OO_SDK_HOME}/bin:${OO_SDK_OUT}/${exampleout}/bin:${OO_SDK_URE_BIN_DIR}:${OFFICE_PROGRAM_PATH}:.:${PATH} 258cdf0e10cSrcweir 259cdf0e10cSrcweir# Set the classpath 260cdf0e10cSrcweirCLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar:${OFFICE_BASE_PROGRAM_PATH}/classes/unoil.jar:${CLASSPATH} 261cdf0e10cSrcweirexport CLASSPATH 262cdf0e10cSrcweir 263cdf0e10cSrcweir 264cdf0e10cSrcweir# Add directory of the command make to the path, if necessary. 265cdf0e10cSrcweirif [ -n "${OO_SDK_MAKE_HOME}" ] 266cdf0e10cSrcweirthen 267cdf0e10cSrcweir PATH=${OO_SDK_MAKE_HOME}:${PATH} 268cdf0e10cSrcweir export OO_SDK_MAKE_HOME 269cdf0e10cSrcweirfi 270cdf0e10cSrcweir 271cdf0e10cSrcweir# Add directory of the zip tool to the path, if necessary. 272cdf0e10cSrcweirif [ -n "${OO_SDK_ZIP_HOME}" ] 273cdf0e10cSrcweirthen 274cdf0e10cSrcweir PATH=${OO_SDK_ZIP_HOME}:${PATH} 275cdf0e10cSrcweir export OO_SDK_ZIP_HOME 276cdf0e10cSrcweirfi 277cdf0e10cSrcweir 278*985d02c7SAriel Constenla-Haile# Add directory of the sed tool to the path, if necessary. 279*985d02c7SAriel Constenla-Haileif [ -n "${OO_SDK_SED_HOME}" ] 280*985d02c7SAriel Constenla-Hailethen 281*985d02c7SAriel Constenla-Haile PATH=${OO_SDK_SED_HOME}:${PATH} 282*985d02c7SAriel Constenla-Haile export OO_SDK_SED_HOME 283*985d02c7SAriel Constenla-Hailefi 284*985d02c7SAriel Constenla-Haile 285*985d02c7SAriel Constenla-Haile# Add directory of the cat tool to the path, if necessary. 286*985d02c7SAriel Constenla-Haileif [ -n "${OO_SDK_CAT_HOME}" ] 287*985d02c7SAriel Constenla-Hailethen 288*985d02c7SAriel Constenla-Haile PATH=${OO_SDK_CAT_HOME}:${PATH} 289*985d02c7SAriel Constenla-Haile export OO_SDK_CAT_HOME 290*985d02c7SAriel Constenla-Hailefi 291*985d02c7SAriel Constenla-Haile 292cdf0e10cSrcweir# Add directory of the C++ tools to the path, if necessary. 293cdf0e10cSrcweirif [ -n "${OO_SDK_CPP_HOME}" ] 294cdf0e10cSrcweirthen 295cdf0e10cSrcweir PATH=${OO_SDK_CPP_HOME}:${PATH} 296cdf0e10cSrcweir export OO_SDK_CPP_HOME 297cdf0e10cSrcweir 298cdf0e10cSrcweir if [ -n "${OO_SDK_CC_55_OR_HIGHER}" ] 299cdf0e10cSrcweir then 300cdf0e10cSrcweir export OO_SDK_CC_55_OR_HIGHER 301cdf0e10cSrcweir fi 302cdf0e10cSrcweirfi 303cdf0e10cSrcweir 304cdf0e10cSrcweir# Add directory of the Java tools to the path, if necessary. 305cdf0e10cSrcweirif [ -n "${OO_SDK_JAVA_HOME}" ] 306cdf0e10cSrcweirthen 307cdf0e10cSrcweir PATH=${OO_SDK_JAVA_HOME}/${javadir}:${PATH} 308cdf0e10cSrcweir# JAVA_HOME=${OO_SDK_JAVA_HOME} 309cdf0e10cSrcweir# export JAVA_HOME 310cdf0e10cSrcweir export OO_SDK_JAVA_HOME 311cdf0e10cSrcweir 312cdf0e10cSrcweir export PATH 313cdf0e10cSrcweirfi 314cdf0e10cSrcweir 315cdf0e10cSrcweirexport PATH 316cdf0e10cSrcweir 317cdf0e10cSrcweirif [ -r "${OO_SDK_URE_LIB_DIR}/libstlport_${pltfrm}${stldebug}.${soext}" ] 318cdf0e10cSrcweirthen 319cdf0e10cSrcweir STLDEBUG=${stldebug} 320cdf0e10cSrcweir export STLDEBUG 321cdf0e10cSrcweirfi 322cdf0e10cSrcweir 323cdf0e10cSrcweirif [ "${platform}" = "MacOSX" ] 324cdf0e10cSrcweirthen 325cdf0e10cSrcweir# For URE, prepare symbolic links for libraries: 326cdf0e10cSrcweir# Only necessary on MacOSX, on other Unix systems the links are already prepared 327cdf0e10cSrcweir# in the SDK installation. 328cdf0e10cSrcweir 329cdf0e10cSrcweir# cleanup potential old links first 330cdf0e10cSrcweir rm -f "${OO_SDK_OUT}/${directoryname}/lib/libuno_cppu.${soext}" \ 331cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_cppuhelper${comid}.${soext}" \ 332cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_sal.${soext}" \ 333cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_salhelper${comid}.${soext}" \ 334cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_purpenvhelper${comid}.${soext}" 335cdf0e10cSrcweir 336cdf0e10cSrcweir if [ -L "${OO_SDK_OUT}/${directoryname}/lib/libstlport_${pltfrm}${STLDEBUG}.${soext}" ] 337cdf0e10cSrcweir then 338cdf0e10cSrcweir rm -rf "${OO_SDK_OUT}/${directoryname}/lib/libstlport_${pltfrm}${STLDEBUG}.${soext}" 339cdf0e10cSrcweir fi 340cdf0e10cSrcweir 341cdf0e10cSrcweir# prepare links 342cdf0e10cSrcweir if [ "${OO_SDK_URE_HOME}" ] 343cdf0e10cSrcweir then 344cdf0e10cSrcweir mkdir -p "${OO_SDK_OUT}/${directoryname}/lib" 345cdf0e10cSrcweir ln -s "${OO_SDK_URE_LIB_DIR}/libuno_cppu.${soext}.3" \ 346cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_cppu.${soext}" 347cdf0e10cSrcweir ln -s "${OO_SDK_URE_LIB_DIR}/libuno_cppuhelper${comid}.${soext}.3" \ 348cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_cppuhelper${comid}.${soext}" 349cdf0e10cSrcweir ln -s "${OO_SDK_URE_LIB_DIR}/libuno_sal.${soext}.3" \ 350cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_sal.${soext}" 351cdf0e10cSrcweir ln -s "${OO_SDK_URE_LIB_DIR}/libuno_salhelper${comid}.${soext}.3" \ 352cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_salhelper${comid}.${soext}" 353cdf0e10cSrcweir ln -s "${OO_SDK_URE_LIB_DIR}/libuno_purpenvhelper${comid}.${soext}.3" \ 354cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libuno_purpenvhelper${comid}.${soext}" 355cdf0e10cSrcweir 356cdf0e10cSrcweir if [ -r "${OO_SDK_URE_LIB_DIR}/libstlport_${pltfrm}${STLDEBUG}.${soext}" ] 357cdf0e10cSrcweir then 358cdf0e10cSrcweir ln -s "${OO_SDK_URE_LIB_DIR}/libstlport_${pltfrm}${STLDEBUG}.${soext}" \ 359cdf0e10cSrcweir "${OO_SDK_OUT}/${directoryname}/lib/libstlport_${pltfrm}${STLDEBUG}.${soext}" 360cdf0e10cSrcweir fi 361cdf0e10cSrcweir fi 362cdf0e10cSrcweirfi 363cdf0e10cSrcweir 364cdf0e10cSrcweir 365cdf0e10cSrcweir# Prepare shell with all necessary environment variables. 366cdf0e10cSrcweirecho 367cdf0e10cSrcweirecho " ************************************************************************" 368*985d02c7SAriel Constenla-Haileecho " *" 369*985d02c7SAriel Constenla-Haileecho " * SDK environment is prepared for ${platform}" 370*985d02c7SAriel Constenla-Haileecho " *" 371cdf0e10cSrcweirecho " * SDK = $OO_SDK_HOME" 372cdf0e10cSrcweirecho " * Office = $OFFICE_HOME" 373cdf0e10cSrcweirecho " * Office Base = $OFFICE_BASE_HOME" 374cdf0e10cSrcweirecho " * URE = $OO_SDK_URE_HOME" 375cdf0e10cSrcweirecho " * Make = $OO_SDK_MAKE_HOME" 376cdf0e10cSrcweirecho " * Zip = $OO_SDK_ZIP_HOME" 377*985d02c7SAriel Constenla-Haileecho " * cat = $OO_SDK_CAT_HOME" 378*985d02c7SAriel Constenla-Haileecho " * sed = $OO_SDK_SED_HOME" 379cdf0e10cSrcweirecho " * C++ Compiler = $OO_SDK_CPP_HOME" 380cdf0e10cSrcweirecho " * Java = $OO_SDK_JAVA_HOME" 381cdf0e10cSrcweirecho " * SDK Output directory = $OO_SDK_OUT" 382cdf0e10cSrcweirecho " * Auto deployment = $SDK_AUTO_DEPLOYMENT" 383cdf0e10cSrcweirecho " *" 384cdf0e10cSrcweirecho " ************************************************************************" 385cdf0e10cSrcweir 386cdf0e10cSrcweirecho "]2;Shell prepared with the SDK environment" 387cdf0e10cSrcweir 388