[Libreoffice-commits] .: set_soenv.in

Jan Holesovsky kendy at kemper.freedesktop.org
Tue Jan 4 06:58:59 PST 2011


 set_soenv.in |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 5e37c4534b7261d9b95fd11f5b31ec2014deb050
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Tue Jan 4 15:47:57 2011 +0100

    Set TMP on Windows if not set.
    
    Otherwise we have problems with paths containing spaces - they don't get
    quoted in some cases.

diff --git a/set_soenv.in b/set_soenv.in
index 0c7e1eb..5ff2831 100644
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1781,6 +1781,11 @@ if ( $platform =~ m/cygwin/ )
    my $tmpdir = qx{cygpath -m "/tmp"};
    chomp($tmpdir);
    ToFile( "TMPDIR",     $tmpdir,            "e" );
+   if ( !defined $ENV{"TMP"} || $ENV{"TMP"} eq "" ) {
+      ToFile( "TMP", $tmpdir, "e" );
+   } else {
+      ToFile( "TMP", "$ENV{'TMP'}", "e" );
+   }
 }
 if ("@WITH_VC_REDIST@" eq "TRUE") {
 ToFile( "WITH_VC_REDIST", "TRUE",  "e" );


More information about the Libreoffice-commits mailing list