cfgWin.js (b3ba5bc7) | cfgWin.js (7477dbb9) |
---|---|
1// ************************************************************* 2// 3// Licensed to the Apache Software Foundation (ASF) under one 4// or more contributor license agreements. See the NOTICE file 5// distributed with this work for additional information 6// regarding copyright ownership. The ASF licenses this file 7// to you under the Apache License, Version 2.0 (the 8// "License"); you may not use this file except in compliance --- 4 unchanged lines hidden (view full) --- 13// Unless required by applicable law or agreed to in writing, 14// software distributed under the License is distributed on an 15// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16// KIND, either express or implied. See the License for the 17// specific language governing permissions and limitations 18// under the License. 19// 20// ************************************************************* | 1// ************************************************************* 2// 3// Licensed to the Apache Software Foundation (ASF) under one 4// or more contributor license agreements. See the NOTICE file 5// distributed with this work for additional information 6// regarding copyright ownership. The ASF licenses this file 7// to you under the Apache License, Version 2.0 (the 8// "License"); you may not use this file except in compliance --- 4 unchanged lines hidden (view full) --- 13// Unless required by applicable law or agreed to in writing, 14// software distributed under the License is distributed on an 15// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16// KIND, either express or implied. See the License for the 17// specific language governing permissions and limitations 18// under the License. 19// 20// ************************************************************* |
21 |
|
21// This script asks for variables, which are necessary for building the 22// examples of the Office Development Kit. The script duplicates the template 23// script and inserts the variables into the copied script. 24// The Script was developed for the operating systems Microsoft Windows. | 22// This script asks for variables, which are necessary for building the 23// examples of the Office Development Kit. The script duplicates the template 24// script and inserts the variables into the copied script. 25// The Script was developed for the operating systems Microsoft Windows. |
26var regKeyOfficeCurrentUser6432Node = "HKEY_CURRENT_USER\\Software\\Wow6432Node\\OpenOffice\\UNO\\InstallPath\\"; 27var regKeyOfficeLocaleMachine6432Node = "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\OpenOffice\\UNO\\InstallPath\\"; |
|
25var regKeyOfficeCurrentUser = "HKEY_CURRENT_USER\\Software\\OpenOffice\\UNO\\InstallPath\\"; 26var regKeyOfficeLocaleMachine = "HKEY_LOCAL_MACHINE\\Software\\OpenOffice\\UNO\\InstallPath\\"; 27var regKeyDotNetInstallRoot = "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\.NETFramework\\InstallRoot"; 28var regKeyDotNet1_1 = "HKLM\\Software\\Microsoft\\.NETFramework\\policy\\v1.1\\4322"; 29var sDirDotNet1_1 = "v1.1.4322"; 30var regKeyDotNet2_0 = "HKLM\\Software\\Microsoft\\.NETFramework\\Policy\\v2.0\\50727"; 31var sDirDotNet2_0 = "v2.0.50727"; 32 --- 20 unchanged lines hidden (view full) --- 53var oo_sdk_name=WshSysEnv("OO_SDK_NAME"); 54var stldebug=""; 55var oo_sdk_home=getSdkHome(); 56var oo_user_sdk_dir=WshSysEnv("APPDATA") + "\\" + oo_sdk_name; 57var oo_user_sdk_env_script=oo_user_sdk_dir + "\\setsdkenv_windows.bat"; 58 59var office_home=getOfficeHome(); 60var office_base_home=getOfficeBaseHome(); | 28var regKeyOfficeCurrentUser = "HKEY_CURRENT_USER\\Software\\OpenOffice\\UNO\\InstallPath\\"; 29var regKeyOfficeLocaleMachine = "HKEY_LOCAL_MACHINE\\Software\\OpenOffice\\UNO\\InstallPath\\"; 30var regKeyDotNetInstallRoot = "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\.NETFramework\\InstallRoot"; 31var regKeyDotNet1_1 = "HKLM\\Software\\Microsoft\\.NETFramework\\policy\\v1.1\\4322"; 32var sDirDotNet1_1 = "v1.1.4322"; 33var regKeyDotNet2_0 = "HKLM\\Software\\Microsoft\\.NETFramework\\Policy\\v2.0\\50727"; 34var sDirDotNet2_0 = "v2.0.50727"; 35 --- 20 unchanged lines hidden (view full) --- 56var oo_sdk_name=WshSysEnv("OO_SDK_NAME"); 57var stldebug=""; 58var oo_sdk_home=getSdkHome(); 59var oo_user_sdk_dir=WshSysEnv("APPDATA") + "\\" + oo_sdk_name; 60var oo_user_sdk_env_script=oo_user_sdk_dir + "\\setsdkenv_windows.bat"; 61 62var office_home=getOfficeHome(); 63var office_base_home=getOfficeBaseHome(); |
61var oo_sdk_ure_home=getUreHome(); | |
62 63var oo_sdk_make_home=getMakeHome(); 64var oo_sdk_zip_home=getZipHome(); 65var oo_sdk_cat_home=getCatHome(); 66var oo_sdk_sed_home=getSedHome(); 67var oo_sdk_manifest_used=""; 68var oo_sdk_windowssdk=""; 69var oo_sdk_cpp_home=getCppHome(); --- 99 unchanged lines hidden (view full) --- 169} 170 171function getOfficeHome() 172{ 173 var sSuggestedHome = WshSysEnv("OFFICE_HOME"); 174 if (sSuggestedHome.length == 0) 175 { 176 try { | 64 65var oo_sdk_make_home=getMakeHome(); 66var oo_sdk_zip_home=getZipHome(); 67var oo_sdk_cat_home=getCatHome(); 68var oo_sdk_sed_home=getSedHome(); 69var oo_sdk_manifest_used=""; 70var oo_sdk_windowssdk=""; 71var oo_sdk_cpp_home=getCppHome(); --- 99 unchanged lines hidden (view full) --- 171} 172 173function getOfficeHome() 174{ 175 var sSuggestedHome = WshSysEnv("OFFICE_HOME"); 176 if (sSuggestedHome.length == 0) 177 { 178 try { |
177 sSuggestedHome = WshShell.RegRead(regKeyOfficeCurrentUser); 178 //The registry entry points to the program folder but we need the 179 //installation folder | 179 sSuggestedHome = WshShell.RegRead(regKeyOfficeCurrentUser6432Node); 180 //The registry entry points to the program folder but we need the 181 //installation folder |
180 } catch(exc) {} 181 if (sSuggestedHome.length == 0) 182 { 183 try { | 182 } catch(exc) {} 183 if (sSuggestedHome.length == 0) 184 { 185 try { |
186 sSuggestedHome = WshShell.RegRead(regKeyOfficeLocaleMachine6432Node); 187 //The registry entry points to the program folder but we need 188 //the installation folder 189 } catch (exc) {} 190 } 191 if (sSuggestedHome.length == 0) 192 { 193 try { |
|
184 sSuggestedHome = WshShell.RegRead(regKeyOfficeLocaleMachine); 185 //The registry entry points to the program folder but we need | 194 sSuggestedHome = WshShell.RegRead(regKeyOfficeLocaleMachine); 195 //The registry entry points to the program folder but we need |
186 //the installation folder | 196 //the installation folder |
187 } catch (exc) {} 188 } | 197 } catch (exc) {} 198 } |
199 if (sSuggestedHome.length == 0) 200 { 201 try { 202 sSuggestedHome = WshShell.RegRead(regKeyOfficeLocaleMachine); 203 //The registry entry points to the program folder but we need 204 //the installation folder 205 } catch (exc) {} 206 } |
|
189 190 var index=0; 191 if ((index = sSuggestedHome.lastIndexOf("\\")) != -1) 192 sSuggestedHome = sSuggestedHome.substr(0, index); 193 194 if (sSuggestedHome.length == 0) 195 sSuggestedHome = searchOffice(); 196 } --- 43 unchanged lines hidden (view full) --- 240} 241 242function searchOffice() 243{ 244 var tmp = oo_sdk_home; 245 var officepath =""; 246 var index=-1; 247 | 207 208 var index=0; 209 if ((index = sSuggestedHome.lastIndexOf("\\")) != -1) 210 sSuggestedHome = sSuggestedHome.substr(0, index); 211 212 if (sSuggestedHome.length == 0) 213 sSuggestedHome = searchOffice(); 214 } --- 43 unchanged lines hidden (view full) --- 258} 259 260function searchOffice() 261{ 262 var tmp = oo_sdk_home; 263 var officepath =""; 264 var index=-1; 265 |
248 if ((index = tmp.lastIndexOf("\\Basis")) != -1) { | 266 if ((index = tmp.lastIndexOf("\\sdk")) != -1) { |
249 tmp = tmp.substr(0, index); 250 } 251 252 if (aFileSystemObject.FileExists(tmp + "\\program\\soffice.exe")) { 253 return tmp; 254 } 255 256 return ""; --- 5 unchanged lines hidden (view full) --- 262 var officebase = oo_sdk_home; 263 var index=officebase.lastIndexOf("\\"); 264 265 officebase = officebase.substr(0, index); 266 267 return officebase; 268} 269 | 267 tmp = tmp.substr(0, index); 268 } 269 270 if (aFileSystemObject.FileExists(tmp + "\\program\\soffice.exe")) { 271 return tmp; 272 } 273 274 return ""; --- 5 unchanged lines hidden (view full) --- 280 var officebase = oo_sdk_home; 281 var index=officebase.lastIndexOf("\\"); 282 283 officebase = officebase.substr(0, index); 284 285 return officebase; 286} 287 |
270function getUreHome() 271{ 272 var tmpure = oo_sdk_home; 273 var ure = ""; 274 var index=0; 275 if ((index = tmpure.lastIndexOf("Basis")) != -1) 276 tmpure = tmpure.substr(0, index); 277 278 if (aFileSystemObject.FileExists(tmpure + "\\URE\\bin\\uno.exe")) { 279 ure = tmpure + "\URE"; 280 } 281 282 return ure; 283 284/* 285 var suggestion = WshSysEnv("OO_SDK_URE_HOME"); 286 var choice; 287 for (;;) { 288 stdout.Write( 289 "\n Enter the URE installation directory [" + suggestion + "]:"); 290 choice = stdin.ReadLine(); 291 if (choice == "") { 292 choice = suggestion; 293 } 294 if (aFileSystemObject.FileExists(choice + "\\bin\\uno.exe")) { 295 break; 296 } 297 stdout.WriteLine("\n Error: A valid URE installation is required."); 298 } 299 return choice; 300*/ 301} 302 | |
303function getMakeHome() 304{ 305 var sSuggestedHome = WshSysEnv("OO_SDK_MAKE_HOME"); 306 307 while(true) 308 { 309 stdout.Write("\n Enter GNU make (3.79.1 or higher) tools directory [" + 310 sSuggestedHome + "]:"); --- 36 unchanged lines hidden (view full) --- 347 } 348 return sHome; 349 } 350} 351 352function getZipHome() 353{ 354 var sSuggestedHome = WshSysEnv("OO_SDK_ZIP_HOME"); | 288function getMakeHome() 289{ 290 var sSuggestedHome = WshSysEnv("OO_SDK_MAKE_HOME"); 291 292 while(true) 293 { 294 stdout.Write("\n Enter GNU make (3.79.1 or higher) tools directory [" + 295 sSuggestedHome + "]:"); --- 36 unchanged lines hidden (view full) --- 332 } 333 return sHome; 334 } 335} 336 337function getZipHome() 338{ 339 var sSuggestedHome = WshSysEnv("OO_SDK_ZIP_HOME"); |
340 341 if (sSuggestedHome.length == 0 && oo_sdk_make_home.length > 0) { 342 sSuggestedHome = oo_sdk_make_home; 343 } |
|
355 356 while(true) 357 { 358 stdout.Write("\n Enter a zip (2.3 or higher) tools directory [" + 359 sSuggestedHome + "]:"); 360 var sHome = stdin.ReadLine(); 361 if (sHome.length == 0) 362 { --- 31 unchanged lines hidden (view full) --- 394 return sHome; 395 } 396} 397 398function getCatHome() 399{ 400 var sSuggestedHome = WshSysEnv("OO_SDK_CAT_HOME"); 401 | 344 345 while(true) 346 { 347 stdout.Write("\n Enter a zip (2.3 or higher) tools directory [" + 348 sSuggestedHome + "]:"); 349 var sHome = stdin.ReadLine(); 350 if (sHome.length == 0) 351 { --- 31 unchanged lines hidden (view full) --- 383 return sHome; 384 } 385} 386 387function getCatHome() 388{ 389 var sSuggestedHome = WshSysEnv("OO_SDK_CAT_HOME"); 390 |
391 if (sSuggestedHome.length == 0 && oo_sdk_make_home.length > 0) { 392 sSuggestedHome = oo_sdk_make_home; 393 } 394 |
|
402 while(true) 403 { 404 stdout.Write("\n Enter a cat (2.0 or higher) tools directory [" + 405 sSuggestedHome + "]:"); 406 var sHome = stdin.ReadLine(); 407 if (sHome.length == 0) 408 { 409 //No user input, use default. --- 36 unchanged lines hidden (view full) --- 446 return sHome; 447 } 448} 449 450function getSedHome() 451{ 452 var sSuggestedHome = WshSysEnv("OO_SDK_SED_HOME"); 453 | 395 while(true) 396 { 397 stdout.Write("\n Enter a cat (2.0 or higher) tools directory [" + 398 sSuggestedHome + "]:"); 399 var sHome = stdin.ReadLine(); 400 if (sHome.length == 0) 401 { 402 //No user input, use default. --- 36 unchanged lines hidden (view full) --- 439 return sHome; 440 } 441} 442 443function getSedHome() 444{ 445 var sSuggestedHome = WshSysEnv("OO_SDK_SED_HOME"); 446 |
447 if (sSuggestedHome.length == 0 && oo_sdk_make_home.length > 0) { 448 sSuggestedHome = oo_sdk_make_home; 449 } 450 |
|
454 while(true) 455 { 456 stdout.Write("\n Enter a sed (3.02 or higher) tools directory [" + 457 sSuggestedHome + "]:"); 458 var sHome = stdin.ReadLine(); 459 if (sHome.length == 0) 460 { 461 //No user input, use default. --- 458 unchanged lines hidden (view full) --- 920 var newFile = fso.CreateTextFile(file, true); 921 922 newFile.Write( 923 "@echo off\n" + 924 "REM This script sets all enviroment variables, which\n" + 925 "REM are necessary for building the examples of the Office Development Kit.\n" + 926 "REM The Script was developed for the operating systems Windows.\n" + 927 "REM The SDK name\n" + | 451 while(true) 452 { 453 stdout.Write("\n Enter a sed (3.02 or higher) tools directory [" + 454 sSuggestedHome + "]:"); 455 var sHome = stdin.ReadLine(); 456 if (sHome.length == 0) 457 { 458 //No user input, use default. --- 458 unchanged lines hidden (view full) --- 917 var newFile = fso.CreateTextFile(file, true); 918 919 newFile.Write( 920 "@echo off\n" + 921 "REM This script sets all enviroment variables, which\n" + 922 "REM are necessary for building the examples of the Office Development Kit.\n" + 923 "REM The Script was developed for the operating systems Windows.\n" + 924 "REM The SDK name\n" + |
928 "REM Example: @set OO_SDK_NAME=openoffice4.0_sdk\n" + 929 "@set OO_SDK_NAME=" + oo_sdk_name + 930 "\n\n" + | 925 "REM Example: @set \"OO_SDK_NAME=openoffice4.0_sdk\"\n" + 926 "@set \"OO_SDK_NAME=" + oo_sdk_name + 927 "\"\n\n" + |
931 "REM Installation directory of the Software Development Kit.\n" + | 928 "REM Installation directory of the Software Development Kit.\n" + |
932 "REM Example: @set OO_SDK_HOME=C:\\Program Files\\OpenOffice\\4\\sdk\n" + 933 "@set OO_SDK_HOME=" + oo_sdk_home + 934 "\n\n" + | 929 "REM Example: @set \"OO_SDK_HOME=C:\\Program Files\\OpenOffice\\4\\sdk\"\n" + 930 "@set \"OO_SDK_HOME=" + oo_sdk_home + 931 "\"\n\n" + |
935 "REM Office installation directory.\n" + | 932 "REM Office installation directory.\n" + |
936 "REM Example: @set OFFICE_HOME=C:\\Program Files\\OpenOffice 4\n" + 937 "@set OFFICE_HOME=" + office_home + 938 "\n\n" + | 933 "REM Example: @set \"OFFICE_HOME=C:\\Program Files\\OpenOffice 4\"\n" + 934 "@set \"OFFICE_HOME=" + office_home + 935 "\"\n\n" + |
939 "REM Directory of the make command.\n" + | 936 "REM Directory of the make command.\n" + |
940 "REM Example: @set OO_SDK_MAKE_HOME=C:\\UnxUtils\\usr\\local\\wbin\n" + 941 "@set OO_SDK_MAKE_HOME=" + oo_sdk_make_home + 942 "\n\n" + | 937 "REM Example: @set \"OO_SDK_MAKE_HOME=C:\\UnxUtils\\usr\\local\\wbin\"\n" + 938 "@set \"OO_SDK_MAKE_HOME=" + oo_sdk_make_home + 939 "\"\n\n" + |
943 "REM Directory of the zip tool.\n" + | 940 "REM Directory of the zip tool.\n" + |
944 "REM Example: @set OO_SDK_ZIP_HOME=C:\\UnxUtils\\usr\\local\\wbin\n" + 945 "@set OO_SDK_ZIP_HOME=" + oo_sdk_zip_home + 946 "\n\n" + | 941 "REM Example: @set \"OO_SDK_ZIP_HOME=C:\\UnxUtils\\usr\\local\\wbin\"\n" + 942 "@set \"OO_SDK_ZIP_HOME=" + oo_sdk_zip_home + 943 "\"\n\n" + |
947 "REM Directory of the cat tool.\n" + | 944 "REM Directory of the cat tool.\n" + |
948 "REM Example: @set OO_SDK_CAT_HOME=C:\\UnxUtils\\usr\\local\\wbin\n" + 949 "@set OO_SDK_CAT_HOME=" + oo_sdk_cat_home + 950 "\n\n" + | 945 "REM Example: @set \"OO_SDK_CAT_HOME=C:\\UnxUtils\\usr\\local\\wbin\"\n" + 946 "@set \"OO_SDK_CAT_HOME=" + oo_sdk_cat_home + 947 "\"\n\n" + |
951 "REM Directory of the sed tool.\n" + | 948 "REM Directory of the sed tool.\n" + |
952 "REM Example: @set OO_SDK_SED_HOME=C:\\UnxUtils\\usr\\local\\wbin\n" + 953 "@set OO_SDK_SED_HOME=" + oo_sdk_sed_home + 954 "\n\n" + | 949 "REM Example: @set \"OO_SDK_SED_HOME=C:\\UnxUtils\\usr\\local\\wbin\"\n" + 950 "@set \"OO_SDK_SED_HOME=" + oo_sdk_sed_home + 951 "\"\n\n" + |
955 "REM Directory of the C++ compiler.\n" + | 952 "REM Directory of the C++ compiler.\n" + |
956 "REM Example: @set OO_SDK_CPP_HOME=C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin\n" + 957 "@set OO_SDK_CPP_HOME=" + oo_sdk_cpp_home + 958 "\n@set CPP_MANIFEST=" + oo_sdk_manifest_used + 959 "\n@set CPP_WINDOWS_SDK=" + oo_sdk_windowssdk + 960 "\n\n" + | 953 "REM Example: @set \"OO_SDK_CPP_HOME=C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin\"\n" + 954 "@set \"OO_SDK_CPP_HOME=" + oo_sdk_cpp_home + 955 "\"\n@set \"CPP_MANIFEST=" + oo_sdk_manifest_used + 956 "\"\n@set \"CPP_WINDOWS_SDK=" + oo_sdk_windowssdk + 957 "\"\n\n" + |
961 "REM Directory of the C# and VB.NET compilers.\n" + | 958 "REM Directory of the C# and VB.NET compilers.\n" + |
962 "REM Example: @set OO_SDK_CLI_HOME=C:\\WINXP\\Microsoft.NET\\Framework\\v1.0.3705\n" + 963 "@set OO_SDK_CLI_HOME=" + oo_sdk_cli_home + 964 "\n\n" + | 959 "REM Example: @set \"OO_SDK_CLI_HOME=C:\\WINXP\\Microsoft.NET\\Framework\\v1.0.3705\"\n" + 960 "@set \"OO_SDK_CLI_HOME=" + oo_sdk_cli_home + 961 "\"\n\n" + |
965 "REM Java SDK installation directory.\n" + | 962 "REM Java SDK installation directory.\n" + |
966 "REM Example: set OO_SDK_JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_05\n" + 967 "@set OO_SDK_JAVA_HOME=" + oo_sdk_java_home + 968 "\n\n" + | 963 "REM Example: @set \"OO_SDK_JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_05\"\n" + 964 "@set \"OO_SDK_JAVA_HOME=" + oo_sdk_java_home + 965 "\"\n\n" + |
969 "REM Special output directory\n" + | 966 "REM Special output directory\n" + |
970 "REM Example: @set OO_SDK_OUT=C:\\" + oo_sdk_name + "\n" + 971 "@set OO_SDK_OUT=" + oo_sdk_out + 972 "\n\n" + | 967 "REM Example: @set \"OO_SDK_OUT=C:\\" + oo_sdk_name + "\"\n" + 968 "@set \"OO_SDK_OUT=" + oo_sdk_out + 969 "\"\n\n" + |
973 "REM Automatic deployment\n" + | 970 "REM Automatic deployment\n" + |
974 "REM Example: @set SDK_AUTO_DEPLOYMENT=YES\n" + 975 "@set SDK_AUTO_DEPLOYMENT=" + sdk_auto_deployment + 976 "\n\n" + 977 "@set STLDEBUG=" + stldebug + "\n" + 978 "REM check stlport lib in 4NT shell\n" + 979 "REM if exist \"%OO_SDK_HOME%\\windows\\lib\\stlport_vc71_stldebug.lib\". (\n" + 980 "REM @set STLDEBUG=_stldebug\n" + 981 "REM )\n\n" + 982 "REM Check installation path for the Office Development Kit.\n" + | 971 "REM Example: @set \"SDK_AUTO_DEPLOYMENT=YES\"\n" + 972 "@set \"SDK_AUTO_DEPLOYMENT=" + sdk_auto_deployment + 973 "\"\n\n" + 974 "REM Check installation path for the Office Development Kit.\n" + |
983 "if not defined OO_SDK_HOME (\n" + 984 " echo Error: the variable OO_SDK_HOME is missing!\n" + 985 " goto :error\n" + 986 " )\n" + | 975 "if not defined OO_SDK_HOME (\n" + 976 " echo Error: the variable OO_SDK_HOME is missing!\n" + 977 " goto :error\n" + 978 " )\n" + |
987 "\n" + 988 "REM Check installation path for the office.\n" + 989 "REM if not defined OFFICE_HOME (\n" + 990 "REM if not defined OO_SDK_URE_HOME (\n" + 991 "REM echo Error: either of the variables OFFICE_HOME and\n" + 992 "REM echo OO_SDK_URE_HOME is missing!\n" + 993 "REM goto :error\n" + 994 "REM )\n" + 995 "REM )\n" + 996 "\n" + | 979 "\n\n" + |
997 "REM Check installation path for GNU make.\n" + 998 "if not defined OO_SDK_MAKE_HOME (\n" + 999 " echo Error: the variable OO_SDK_MAKE_HOME is missing!\n" + 1000 " goto :error\n" + 1001 " )\n" + 1002 "\n" + 1003 "REM Check installation path for the zip tool.\n" + 1004 "if not defined OO_SDK_ZIP_HOME (\n" + --- 9 unchanged lines hidden (view full) --- 1014 "\n" + 1015 "REM Check installation path for the sed tool.\n" + 1016 "if not defined OO_SDK_SED_HOME (\n" + 1017 " echo Error: the variable OO_SDK_SED_HOME is missing!\n" + 1018 " goto :error\n" + 1019 " )\n" + 1020 "\n" + 1021 "REM Set library path. \n" + | 980 "REM Check installation path for GNU make.\n" + 981 "if not defined OO_SDK_MAKE_HOME (\n" + 982 " echo Error: the variable OO_SDK_MAKE_HOME is missing!\n" + 983 " goto :error\n" + 984 " )\n" + 985 "\n" + 986 "REM Check installation path for the zip tool.\n" + 987 "if not defined OO_SDK_ZIP_HOME (\n" + --- 9 unchanged lines hidden (view full) --- 997 "\n" + 998 "REM Check installation path for the sed tool.\n" + 999 "if not defined OO_SDK_SED_HOME (\n" + 1000 " echo Error: the variable OO_SDK_SED_HOME is missing!\n" + 1001 " goto :error\n" + 1002 " )\n" + 1003 "\n" + 1004 "REM Set library path. \n" + |
1022 "@set LIB=%OO_SDK_HOME%\\lib;%LIB%\n" + | 1005 "@set \"LIB=%OO_SDK_HOME%\\lib;%LIB%\"\n" + |
1023 "if defined CPP_WINDOWS_SDK (\n" + | 1006 "if defined CPP_WINDOWS_SDK (\n" + |
1024 " @set LIB=%LIB%;%CPP_WINDOWS_SDK%\\lib\n" + | 1007 " @set \"LIB=%LIB%;%CPP_WINDOWS_SDK%\\lib\"\n" + |
1025 " )\n" + 1026 "\n" + 1027 "REM Set office program path.\n" + 1028 "if defined OFFICE_HOME (\n" + | 1008 " )\n" + 1009 "\n" + 1010 "REM Set office program path.\n" + 1011 "if defined OFFICE_HOME (\n" + |
1029 " @set OFFICE_PROGRAM_PATH=%OFFICE_HOME%\\program\n" + | 1012 " @set \"OFFICE_PROGRAM_PATH=%OFFICE_HOME%\\program\"\n" + |
1030 " )" + 1031 "\n" + 1032 "REM Set UNO path, necessary to ensure that the cpp examples using the\n" + 1033 "REM new UNO bootstrap mechanism use the configured office installation\n" + 1034 "REM (only set when using an Office).\n" + 1035 "if defined OFFICE_HOME (\n" + | 1013 " )" + 1014 "\n" + 1015 "REM Set UNO path, necessary to ensure that the cpp examples using the\n" + 1016 "REM new UNO bootstrap mechanism use the configured office installation\n" + 1017 "REM (only set when using an Office).\n" + 1018 "if defined OFFICE_HOME (\n" + |
1036 " @set UNO_PATH=%OFFICE_PROGRAM_PATH%\n" + | 1019 " @set \"UNO_PATH=%OFFICE_PROGRAM_PATH%\"\n" + |
1037 " )\n" + | 1020 " )\n" + |
1021 "\n\n" + 1022 "@set \"OO_SDK_OFFICE_BIN_DIR=%OFFICE_PROGRAM_PATH%\"\n" + 1023 "@set \"OO_SDK_OFFICE_LIB_DIR=%OFFICE_BASE_PROGRAM_PATH%\"\n" + 1024 "@set \"OO_SDK_OFFICE_JAVA_DIR=%OFFICE_BASE_PROGRAM_PATH%\\classes\"\n" + |
|
1038 "\n" + | 1025 "\n" + |
1039 "REM @set OO_SDK_URE_BIN_DIR=%OO_SDK_URE_HOME%\\bin\n" + 1040 "REM @set OO_SDK_URE_LIB_DIR=%OO_SDK_URE_HOME%\\bin\n" + 1041 "REM @set OO_SDK_URE_JAVA_DIR=%OO_SDK_URE_HOME%\\java\n" + 1042 "\n" + 1043 "@set OO_SDK_OFFICE_BIN_DIR=%OFFICE_PROGRAM_PATH%\n" + 1044 "@set OO_SDK_OFFICE_LIB_DIR=%OFFICE_BASE_PROGRAM_PATH%\n" + 1045 "@set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_BASE_PROGRAM_PATH%\\classes\n" + 1046 "REM )\n" + 1047 "\n" + | |
1048 "REM Set classpath\n" + | 1026 "REM Set classpath\n" + |
1049 "@set CLASSPATH=%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;%OO_SDK_OFFICE_JAVA_DIR%\\unoil.jar\n" + | 1027 "@set \"CLASSPATH=%OO_SDK_OFFICE_JAVA_DIR%\\juh.jar;%OO_SDK_OFFICE_JAVA_DIR%\\jurt.jar;%OO_SDK_OFFICE_JAVA_DIR%\\ridl.jar;%OO_SDK_OFFICE_JAVA_DIR%\\unoloader.jar;%OO_SDK_OFFICE_JAVA_DIR%\\unoil.jar\"\n" + |
1050 "\n" + 1051 "REM Add directory of the SDK tools to the path.\n" + | 1028 "\n" + 1029 "REM Add directory of the SDK tools to the path.\n" + |
1052 "set PATH=%OO_SDK_HOME%\\bin;%OO_SDK_URE_BIN_DIR%;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_HOME%\\WINexample.out\\bin;%OO_SDK_MAKE_HOME%;%OO_SDK_ZIP_HOME%;%OO_SDK_CAT_HOME%;%OO_SDK_SED_HOME%;%PATH%\n" + | 1030 "set \"PATH=%OO_SDK_HOME%\\bin;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_HOME%\\WINexample.out\\bin;%OO_SDK_MAKE_HOME%;%OO_SDK_ZIP_HOME%;%OO_SDK_CAT_HOME%;%OO_SDK_SED_HOME%;%PATH%\"\n" + |
1053 "\n" + 1054 "REM Set PATH appropriate to the output directory\n" + 1055 "if defined OO_SDK_OUT (\n" + | 1031 "\n" + 1032 "REM Set PATH appropriate to the output directory\n" + 1033 "if defined OO_SDK_OUT (\n" + |
1056 " @set PATH=%OO_SDK_OUT%\\WINexample.out\\bin;%PATH%\n" + | 1034 " @set \"PATH=%OO_SDK_OUT%\\WINexample.out\\bin;%PATH%\"\n" + |
1057 " ) else (\n" + | 1035 " ) else (\n" + |
1058 " @set PATH=%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\n" + | 1036 " @set \"PATH=%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\"\n" + |
1059 " )\n" + 1060 "\n" + 1061 "REM Add directory of the Win SDK to the path, if necessary.\n" + 1062 "if defined CPP_WINDOWS_SDK (\n" + | 1037 " )\n" + 1038 "\n" + 1039 "REM Add directory of the Win SDK to the path, if necessary.\n" + 1040 "if defined CPP_WINDOWS_SDK (\n" + |
1063 " @set PATH=%CPP_WINDOWS_SDK\\bin%;%PATH%\n" + 1064 " @set INCLUDE=%CPP_WINDOWS_SDK\\Include%;%INCLUDE%\n" + | 1041 " @set \"PATH=%CPP_WINDOWS_SDK\\bin%;%PATH%\"\n" + 1042 " @set \"INCLUDE=%CPP_WINDOWS_SDK\\Include%;%INCLUDE%\"\n" + |
1065 ")\n" + 1066 "REM Add directory of the C# and VB.NET compilers to the path, if necessary.\n" + | 1043 ")\n" + 1044 "REM Add directory of the C# and VB.NET compilers to the path, if necessary.\n" + |
1067 "if defined OO_SDK_CLI_HOME @set PATH=%OO_SDK_CLI_HOME%;%PATH%\n" + | 1045 "if defined OO_SDK_CLI_HOME @set \"PATH=%OO_SDK_CLI_HOME%;%PATH%\"\n" + |
1068 "\n" + 1069 "REM Add directory of the Java tools to the path, if necessary.\n" + | 1046 "\n" + 1047 "REM Add directory of the Java tools to the path, if necessary.\n" + |
1070 "if defined OO_SDK_JAVA_HOME @set PATH=%OO_SDK_JAVA_HOME%\\bin;%OO_SDK_JAVA_HOME%\\jre\\bin;%PATH%\n" + | 1048 "if defined OO_SDK_JAVA_HOME @set \"PATH=%OO_SDK_JAVA_HOME%\\bin;%OO_SDK_JAVA_HOME%\\jre\\bin;%PATH%\"\n" + |
1071 "\n" + 1072 "REM Set environment for C++ compiler tools, if necessary.\n" + 1073 "if defined OO_SDK_CPP_HOME call \"%OO_SDK_CPP_HOME%\\VCVARS32.bat\"\n" + 1074 "\n" + 1075 "REM Set tilte to identify the prepared shell.\n" + 1076 "title Shell prepared for SDK\n" + 1077 "\nREM Prepare shell with all necessary environment variables.\n" + 1078 "echo.\n" + --- 27 unchanged lines hidden --- | 1049 "\n" + 1050 "REM Set environment for C++ compiler tools, if necessary.\n" + 1051 "if defined OO_SDK_CPP_HOME call \"%OO_SDK_CPP_HOME%\\VCVARS32.bat\"\n" + 1052 "\n" + 1053 "REM Set tilte to identify the prepared shell.\n" + 1054 "title Shell prepared for SDK\n" + 1055 "\nREM Prepare shell with all necessary environment variables.\n" + 1056 "echo.\n" + --- 27 unchanged lines hidden --- |