setsdkenv_unix (ff3f4ebc) setsdkenv_unix (b3ba5bc7)
1#! /bin/sh
2# *************************************************************
3#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the

--- 16 unchanged lines hidden (view full) ---

25CURRENTDIR=`/bin/pwd`
26SDKTMPDIR=`dirname $0`
27OO_SDK_HOME=`(cd $SDKTMPDIR && pwd && cd $CURRENTDIR) | head -n 1`
28OOVERSION=`cat $OO_SDK_HOME/settings/dk.mk | tail -3 | head -n 1 | cut -d"=" -f2 | cut -d"." -f1,2`
29if [ "$OSTYPE" = "Darwin" ]
30then
31 OO_SDK_NAME=`basename $OO_SDK_HOME`
32else
1#! /bin/sh
2# *************************************************************
3#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the

--- 16 unchanged lines hidden (view full) ---

25CURRENTDIR=`/bin/pwd`
26SDKTMPDIR=`dirname $0`
27OO_SDK_HOME=`(cd $SDKTMPDIR && pwd && cd $CURRENTDIR) | head -n 1`
28OOVERSION=`cat $OO_SDK_HOME/settings/dk.mk | tail -3 | head -n 1 | cut -d"=" -f2 | cut -d"." -f1,2`
29if [ "$OSTYPE" = "Darwin" ]
30then
31 OO_SDK_NAME=`basename $OO_SDK_HOME`
32else
33 OO_SDK_NAME=apacheopenoffice${OOVERSION}_sdk
33 OO_SDK_NAME=openoffice${OOVERSION}_sdk
34fi
35
36export OO_SDK_HOME
37
38if [ "$1" = "--force-configure" ]
39then
40 if [ -r $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh ]
41 then
42 rm $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh
43 fi
34fi
35
36export OO_SDK_HOME
37
38if [ "$1" = "--force-configure" ]
39then
40 if [ -r $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh ]
41 then
42 rm $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh
43 fi
44 if [ -r $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.csh ]
45 then
46 rm $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.csh
47 fi
48 shift
44 shift
49elif [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ -n "$1" ]
50then
51 echo
52 echo " using: setsdkenv_unix [options]"
53 echo ""
54 echo " options:"
55 echo " --force-configure : force a new configuration of your SDK environment."
56 echo " Alternatively can you edit your SDK environment script directly:"

--- 30 unchanged lines hidden ---
45elif [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ -n "$1" ]
46then
47 echo
48 echo " using: setsdkenv_unix [options]"
49 echo ""
50 echo " options:"
51 echo " --force-configure : force a new configuration of your SDK environment."
52 echo " Alternatively can you edit your SDK environment script directly:"

--- 30 unchanged lines hidden ---