diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-12-20 11:23:08 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-12-20 11:23:08 +0000 |
commit | bf0e839ffb1326b29922afcffd7828475e34d649 (patch) | |
tree | 76a1cda8793b8d1d779ec2a58d6d1580055137a3 /odk/setsdkenv_unix.sh.in | |
parent | INTEGRATION: CWS jsc15 (1.18.110); FILE MERGED (diff) | |
download | core-bf0e839ffb1326b29922afcffd7828475e34d649.tar.gz core-bf0e839ffb1326b29922afcffd7828475e34d649.zip |
INTEGRATION: CWS jsc15 (1.8.82); FILE MERGED
2006/11/23 13:57:18 jsc 1.8.82.1: #i71575# integrate patch
Diffstat (limited to 'odk/setsdkenv_unix.sh.in')
-rw-r--r-- | odk/setsdkenv_unix.sh.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/odk/setsdkenv_unix.sh.in b/odk/setsdkenv_unix.sh.in index ed658f3a45db..257e353fbade 100644 --- a/odk/setsdkenv_unix.sh.in +++ b/odk/setsdkenv_unix.sh.in @@ -3,11 +3,16 @@ # This script starts a new shell and sets all enviroment variables, which # are necessary for building the examples of the Office Development Kit. # The Script was developed for the operating systems Solaris and Linux. -sdkscript=`echo $0 | grep setsdkenv_unix` +sdkscript=`echo $0 | grep setsdkenv_unix | true` if [ "$sdkscript" = "" ] then sdkscript=`history 1 | sed "s/.*\. //"` fi +if [ "$sdkscript" = "" ] +then +# total falback; needed when history does not work +sdkscript=@OO_SDK_HOME@/setsdkenv_unix +fi sdkdir=`dirname $sdkscript` # The SDK name |