diff options
author | obo <obo@openoffice.org> | 2010-05-20 11:31:55 +0200 |
---|---|---|
committer | obo <obo@openoffice.org> | 2010-05-20 11:31:55 +0200 |
commit | 129517a36c64d1330ec581664d0ee0807e6f3e16 (patch) | |
tree | 31a00367d5fc983d9b6cae16e58916d8228ffd45 | |
parent | fccd94124b042ee05113a7b2bc574acca1d682aa (diff) | |
parent | 05d010dbc1ee1bff94868019912fe9980ebd2082 (diff) |
CWS-TOOLING: integrate CWS sdk321ooo/OOO320_m19ooo/OOO320_m18
-rw-r--r-- | odk/cfgWin.js | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | odk/configure.pl | 14 | ||||
-rw-r--r-- | odk/setsdkenv_unix.csh.in | 8 | ||||
-rw-r--r-- | odk/setsdkenv_unix.sh.in | 8 | ||||
-rw-r--r-- | odk/settings/settings.mk | 12 |
5 files changed, 29 insertions, 15 deletions
diff --git a/odk/cfgWin.js b/odk/cfgWin.js index 1cc7836d..0dc23d22 100644 --- a/odk/cfgWin.js +++ b/odk/cfgWin.js @@ -846,7 +846,7 @@ function writeBatFile(fdir, file) "REM if exist \"%OO_SDK_HOME%\\windows\\lib\\stlport_vc71_stldebug.lib\". (\n" + "REM set STLDEBUG=_stldebug\n" + "REM )\n\n" + - "REM Check installation path for the StarOffice Development Kit.\n" + + "REM Check installation path for the Office Development Kit.\n" + "if not defined OO_SDK_HOME (\n" + " echo Error: the variable OO_SDK_HOME is missing!\n" + " goto :error\n" + diff --git a/odk/configure.pl b/odk/configure.pl index 5d28e8cb..8f3778e8 100644..100755 --- a/odk/configure.pl +++ b/odk/configure.pl @@ -37,6 +37,7 @@ if ( $main::operatingSystem =~ m/darwin/ ) } else { $main::OO_SDK_URE_HOME = `cd $main::sdkpath/../../ure && pwd`; } +chomp($main::OO_SDK_URE_HOME); $main::OO_SDK_MAKE_HOME = ""; $main::makeName = "make"; @@ -624,6 +625,9 @@ sub searchMacOffice { if (-d "/Applications/OpenOffice.org.app" ) { return "/Applications/OpenOffice.org.app" + } + if (-d "/Applications/Oracle Open Office.app" ) { + return "/Applications/Oracle Open Office.app"; } if (-d "/Applications/StarOffice.app" ) { return "/Applications/StarOffice.app"; @@ -650,6 +654,16 @@ sub searchoffice return $officepath; } # fallback + my $tmpversion = $main::OO_MAJORVERSION; +# if ( $main::OO_MINORVERSION > 0) { +# $tmpversion = "$tmpversion.$main::OO_MINORVERSION"; +# } + + $officepath = "$tmpOffice/oracle_open_office$tmpversion"; + if (-d $officepath && -e "$officepath/program/soffice") { + return $officepath; + } + my $tmpversion = $main::OO_MAJORVERSION + 6; if ( $main::OO_MINORVERSION > 0) { $tmpversion = "$tmpversion.$main::OO_MINORVERSION"; diff --git a/odk/setsdkenv_unix.csh.in b/odk/setsdkenv_unix.csh.in index 82a39e38..ef513d4e 100644 --- a/odk/setsdkenv_unix.csh.in +++ b/odk/setsdkenv_unix.csh.in @@ -9,16 +9,16 @@ setenv OO_SDK_NAME @OO_SDK_NAME@ # Installation directory of the Software Development Kit. # Example: setenv OO_SDK_HOME /opt/openoffice.org/basis3.0/sdk -setenv OO_SDK_HOME @OO_SDK_HOME@ +setenv OO_SDK_HOME '@OO_SDK_HOME@' # Office installation directory. # Example: set OFFICE_HOME=/opt/openoffice.org3 -set OFFICE_HOME=@OFFICE_HOME@ -OFFICE_BASE_HOME=@OFFICE_BASE_HOME@ +set OFFICE_HOME='@OFFICE_HOME@' +OFFICE_BASE_HOME='@OFFICE_BASE_HOME@' # URE installation directory. # Example: setenv OO_SDK_URE_HOME /opt/openoffice.org/ure -setenv OO_SDK_URE_HOME @OO_SDK_URE_HOME@ +setenv OO_SDK_URE_HOME '@OO_SDK_URE_HOME@' # Directory of the make command. # Example: setenv OO_SDK_MAKE_HOME /usr/bin diff --git a/odk/setsdkenv_unix.sh.in b/odk/setsdkenv_unix.sh.in index 0f6ef225..96365481 100644 --- a/odk/setsdkenv_unix.sh.in +++ b/odk/setsdkenv_unix.sh.in @@ -10,16 +10,16 @@ export OO_SDK_NAME # Installation directory of the Software Development Kit. # Example: OO_SDK_HOME=/opt/openoffice.org/basis3.0/sdk -OO_SDK_HOME=@OO_SDK_HOME@ +OO_SDK_HOME='@OO_SDK_HOME@' # Office installation directory. # Example: OFFICE_HOME=/opt/openoffice.org3 -OFFICE_HOME=@OFFICE_HOME@ -OFFICE_BASE_HOME=@OFFICE_BASE_HOME@ +OFFICE_HOME='@OFFICE_HOME@' +OFFICE_BASE_HOME='@OFFICE_BASE_HOME@' # URE installation directory. # Example: OO_SDK_URE_HOME=/opt/openoffice.org/ure -OO_SDK_URE_HOME=@OO_SDK_URE_HOME@ +OO_SDK_URE_HOME='@OO_SDK_URE_HOME@' export OO_SDK_URE_HOME # Directory of the make command. diff --git a/odk/settings/settings.mk b/odk/settings/settings.mk index 3f84612e..74c13934 100644 --- a/odk/settings/settings.mk +++ b/odk/settings/settings.mk @@ -443,12 +443,12 @@ SALHELPERLIB=-luno_salhelper$(COMID) REGLIB=-lreg STORELIB=-lstore -SALDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_sal.dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_sal.dylib -CPPUDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppu.dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_cppu.dylib -CPPUHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppuhelper$(COMID).dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_cppuhelper$(COMID).dylib -SALHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_salhelper$(COMID).dylib -REGDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libreg.dylib.3:$(OO_SDK_URE_LIB_DIR)/libreg.dylib -STOREDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libstore.dylib.3:$(OO_SDK_URE_LIB_DIR)/libstore.dylib +SALDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_sal.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_sal.dylib' +CPPUDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppu.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_cppu.dylib' +CPPUHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppuhelper'$(COMID).dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_cppuhelper$(COMID).dylib' +SALHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_salhelper$(COMID).dylib' +REGDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libreg.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libreg.dylib' +STOREDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libstore.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libstore.dylib' INSTALL_NAME_URELIBS=install_name_tool -change @__________________________________________________URELIB/libuno_sal.dylib.3 @executable_path/urelibs/libuno_sal.dylib.3 -change @__________________________________________________URELIB/libuno_cppu.dylib.3 @executable_path/urelibs/libuno_cppu.dylib.3 -change @__________________________________________________URELIB/libuno_cppuhelper$(COMID).dylib.3 @executable_path/urelibs/libuno_cppuhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3 @executable_path/urelibs/libuno_salhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libreg.dylib.3 @executable_path/urelibs/libreg.dylib.3 -change @__________________________________________________URELIB/libstore.dylib.3 @executable_path/urelibs/libstore.dylib.3 |