summaryrefslogtreecommitdiff
path: root/helpcontent2/helpers
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2009-12-03 17:31:26 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2009-12-03 17:31:26 +0000
commit3647d4121cc18f6d8fd29e7ebd08b3a1e9d23d65 (patch)
tree84a77b96e7195cbc1445c55f1f506464f27602f9 /helpcontent2/helpers
parent9add66862aa1390171b8b4ad9a9be3c967e2a165 (diff)
fix a bizarr rebuild error of the *.tree files
Diffstat (limited to 'helpcontent2/helpers')
-rw-r--r--helpcontent2/helpers/update_tree.pl21
1 files changed, 9 insertions, 12 deletions
diff --git a/helpcontent2/helpers/update_tree.pl b/helpcontent2/helpers/update_tree.pl
index 71579750ad..23795168c1 100644
--- a/helpcontent2/helpers/update_tree.pl
+++ b/helpcontent2/helpers/update_tree.pl
@@ -73,7 +73,7 @@ if ( ! defined $prj ) {
($source_dir = $scriptname) =~ s/\/update_tree.pl/\/..\/source/;
($source_dir_xhp = $scriptname) =~ s/\/update_tree.pl/\/..\/source/;
- if ( defined $ENV{TRYSDF} && defined $ENV{LOCALIZESDF} )
+ if ( defined $ENV{TRYSDF} || defined $ENV{LOCALIZESDF} )
{
if( defined $ENV{LOCALIZATION_FOUND} && $ENV{LOCALIZATION_FOUND} eq "YES" )
{
@@ -98,19 +98,16 @@ if ( ! defined $prj ) {
$source_dir_xhp = "$prj\/source";
$treestrings = "$source_dir/text/shared/tree_strings.xhp";
- if ( defined $ENV{TRYSDF} && defined $ENV{LOCALIZESDF} )
+ if( defined $ENV{LOCALIZATION_FOUND} && $ENV{LOCALIZATION_FOUND} eq "YES" )
{
- if( defined $ENV{LOCALIZATION_FOUND} && $ENV{LOCALIZATION_FOUND} eq "YES" )
- {
- $source_dir = $ENV{TRYSDF};
- }
- else
- {
- $source_dir = $ENV{LOCALIZESDF};
- }
- if( $is_win eq "false" ) { $source_dir =~ s/\/auxiliary\/localize.sdf$// ; }
- else { $source_dir =~ s/\\auxiliary\\localize.sdf$// ; }
+ $source_dir = $ENV{TRYSDF};
+ }
+ else
+ {
+ $source_dir = $ENV{LOCALIZESDF};
}
+ if( $is_win eq "false" ) { $source_dir =~ s/\/auxiliary\/localize.sdf$// ; }
+ else { $source_dir =~ s/\\auxiliary\\localize.sdf$// ; }
#else {die "ERROR: The env variables TRYSDF LOCALIZATION_FOUND LOCALIZESDF not found ... something is wrong!\n";}
}