7 OO_SDK_HOME
=`(cd $SDKTMPDIR && pwd && cd $CURRENTDIR) | head -n 1`
8 OOVERSION
=`cat $OO_SDK_HOME/settings/dk.mk | tail -2 | head -n 1 | cut -d"=" -f2 | cut -d"." -f1,2`
9 if [ "$OSTYPE" = "Darwin" ]
11 OO_SDK_NAME
=`basename $OO_SDK_HOME`
13 OO_SDK_NAME
=libreoffice
${OOVERSION}_sdk
18 if [ "$1" = "--force-configure" ]
20 if [ -r $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh
]
22 rm $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh
24 if [ -r $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.csh
]
26 rm $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.csh
29 elif [ "$1" = "-h" ] ||
[ "$1" = "--help" ] ||
[ -n "$1" ]
32 echo " using: setsdkenv_unix [options]"
35 echo " --force-configure : force a new configuration of your SDK environment."
36 echo " Alternatively can you edit your SDK environment scripts directly:"
37 echo " $HOME/$OO_SDK_NAME/setsdkenv_unix.sh"
38 echo " $HOME/$OO_SDK_NAME/setsdkenv_unix.csh"
39 echo " -h, --help : print this help and exit"
44 # source the prepared environment and start a new shell
45 if [ -r $HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh
]
47 .
$HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh
50 echo " ************************************************************************"
52 echo " * You have to configure your SDK environment first before you can"
53 echo " * can use it! The configuration has to be done only once."
55 echo " ************************************************************************"
58 perl
$OO_SDK_HOME/configure.pl
$HOSTNAME $OO_SDK_HOME $OO_SDK_NAME
60 .
$HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh
64 echo Shell terminated.
67 echo "\e]2;$TERMHEAD\a"