diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2010-05-06 18:26:40 +0200 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2010-05-06 18:26:40 +0200 |
commit | 32b0f0d10079682a69fbc3bb2d4db1ec43715a88 (patch) | |
tree | c8927442ee235ddc3e3c9239009737e788fc8092 /odk/configure.pl | |
parent | 7ce3cfb11f2d4c0f6e8f41a4e3a37b984d71f883 (diff) |
sdk321: adapt configuration and build env to work proper with spaces
Notes
split repo tag: sdk_ooo/DEV300_m80
Diffstat (limited to 'odk/configure.pl')
-rwxr-xr-x[-rw-r--r--] | odk/configure.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/odk/configure.pl b/odk/configure.pl index 968ebc589640..789cfac7cd76 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"; @@ -625,6 +626,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"; |