summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRelease Engineers <releng@openoffice.org>2009-08-11 10:37:02 +0000
committerRelease Engineers <releng@openoffice.org>2009-08-11 10:37:02 +0000
commit5a71f2eb4c045ec8dd134ae1998e8b1bbd8e5aec (patch)
tree0c214e0aecbe08f44b97cf486d9363b96afca73c
parentc4929a7c5999fd93be7781be61625248f5b9746f (diff)
#i10000# added fallback for TMPDIR
-rw-r--r--solenv/bin/mhids.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/solenv/bin/mhids.pl b/solenv/bin/mhids.pl
index 45fcc8433..428b8c586 100644
--- a/solenv/bin/mhids.pl
+++ b/solenv/bin/mhids.pl
@@ -120,8 +120,13 @@ if ( $ENV{NO_HID_FILES} ) {
$no_hid_files = $ENV{"NO_HID_FILES"};
}
$solarincludes = $ENV{SOLARINCLUDES};
-$tmpdir = $ENV{TMPDIR};
-die "ERROR - \"TMPDIR\" environment variable not set\n" if ( !defined $tmpdir );
+if (defined $ENV{TMPDIR}) {
+ $tmpdir = $ENV{TMPDIR};
+} elsif (defined $ENV{TMP}) {
+ $tmpdir = $ENV{TMP};
+} else {
+ die "ERROR - \"TMPDIR\" & \"TMP\" environment variables not set\n";
+};
die "ERROR - \"$tmpdir\" doesn't exist\n" if ( ! -d $tmpdir );
setcompiler();