4 set SDK_DIR=%SDK_DIR_TMP:~0,-1%
6 if "%@RIGHT[5,%SDK_DIR%]" EQU "~0,-1" (
8 set /A LENGTH=%@LEN[%SDK_DIR%] - 22
9 set SDK_DIR=%@LEFT[%LENGTH%,%SDK_DIR%]
13 set OO_SDK_NAME=__SDKNAME__
15 set OO_USER_SDK_DIR=%APPDATA%\%OO_SDK_NAME%
16 set OO_USER_SDKENV_SCRIPT=%OO_USER_SDK_DIR%\setsdkenv_windows.bat
18 if "%1" EQU "--force-configure" (
19 if exist "%OO_USER_ENV_SCRIPT%". (
20 del "%OO_USER_SDKENV_SCRIPT%"
25 if "%1" EQU "-h" goto printhelp
26 if "%1" EQU "--help" goto printhelp
27 if "%1" NEQ "" goto printhelp
32 if not exist "%OO_USER_SDKENV_SCRIPT%". (
34 echo ******************************************************************
36 echo * You have to configure your SDK environment first before you can
37 echo * can use it! The configuration has to be done only once.
39 echo ******************************************************************
42 cscript //I //Nologo "%SDK_DIR%\cfgWin.js"
50 echo using: setsdkenv_windows.bat [options]
53 echo --force-configure : force a new configuration of your SDK environment.
54 echo Alternatively can you edit your SDK environment script directly:
55 echo "%OO_USER_SDKENV_SCRIPT%"
56 echo -h, --help : print this help and exit
62 call "%OO_USER_SDKENV_SCRIPT%"