summaryrefslogtreecommitdiff
path: root/helpcontent2/helpers/update_tree.pl
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-10-10 12:16:37 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-10-10 12:16:37 +0000
commit63d93cf3655aebad94b04b73e45353ed9f1c41e8 (patch)
tree60c41cc9d61dc6eaa7a5434daafce5e54fdc8303 /helpcontent2/helpers/update_tree.pl
parentf714535c254c6cffc6c8b921ee3d0147db3a0459 (diff)
#i55389#, #i55594#: extend environment check for COMMON_BUILD, correct permissions for generated tree files.
Diffstat (limited to 'helpcontent2/helpers/update_tree.pl')
-rw-r--r--helpcontent2/helpers/update_tree.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpcontent2/helpers/update_tree.pl b/helpcontent2/helpers/update_tree.pl
index 771fdbc392..3ae971c8d1 100644
--- a/helpcontent2/helpers/update_tree.pl
+++ b/helpcontent2/helpers/update_tree.pl
@@ -17,7 +17,7 @@ terminate() if ( ! defined $inpath );
my $destpath = $inpath;
my $with_lang = $ENV{WITH_LANG};
-if ( defined $ENV{COMMON_OUTDIR} ) {
+if ( defined $ENV{COMMON_OUTDIR} && $ENV{COMMON_OUTDIR} ne "" ) {
$destpath =~ s/$ENV{OUTPATH}/$ENV{COMMON_OUTDIR}/;
}
@@ -235,6 +235,7 @@ sub processtreefiles {
print TV $line;
}
close TV;
+ chmod 0664, $treetmpfile or &terminate("Cannot change rights on $treetmpfile");
rename($treetmpfile, "$tree_dest/$lng/$tv") or &terminate("Cannot write to $tvout");
} else {
&terminate("Cannot write to $tvout");