[Libreoffice-commits] core.git: odk/config

Miklos Vajna vmiklos at suse.cz
Thu Jul 25 02:10:01 PDT 2013


 odk/config/configure.pl |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 475587e31821d9b8d89698ec5b0e5a6160ec3b5f
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Thu Jul 25 10:53:12 2013 +0200

    odk: let configure find the office path by default on dev-install
    
    Change-Id: I50a698a16b8487945b4928d2c0e1c33c00c7641d

diff --git a/odk/config/configure.pl b/odk/config/configure.pl
index 04bfb4b..588f80b 100755
--- a/odk/config/configure.pl
+++ b/odk/config/configure.pl
@@ -734,6 +734,13 @@ sub searchoffice
         return $officepath;
     }
 
+    # Before trying versioned directories, check if the sdk is directly under
+    # the office path.
+    $officepath = $main::sdkpath . "/..";
+    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";


More information about the Libreoffice-commits mailing list