summaryrefslogtreecommitdiff
path: root/solenv/bin/build.pl
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-10-02 15:32:08 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-10-02 15:32:08 +0000
commit415e27be7ca3a3aeb58a19ddae0a9be3b812b257 (patch)
tree0df80c06aa607c9d4223b5670884432347ef7baa /solenv/bin/build.pl
parent8d6ba2fd21fd5f58fdb13ed839d5a3b8239b6fcb (diff)
#i10000# just one more fallback for StandDir
Diffstat (limited to 'solenv/bin/build.pl')
-rw-r--r--solenv/bin/build.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/solenv/bin/build.pl b/solenv/bin/build.pl
index aa08c5c82..ea82effef 100644
--- a/solenv/bin/build.pl
+++ b/solenv/bin/build.pl
@@ -895,9 +895,11 @@ sub get_stand_dir {
# $StandDir = getcwd();
if ( defined $ENV{PWD} ) {
$StandDir = $ENV{PWD};
- } else {
+ } elsif (defined $ENV{_cwd}) {
$StandDir = $ENV{_cwd};
- }
+ } else {
+ $StandDir = cwd();
+ };
print "curr dir: $StandDir\n";
my $previous_dir = '';
do {