summaryrefslogtreecommitdiff
path: root/l10ntools/scripts/localize.pl
diff options
context:
space:
mode:
authorAndras Timar <timar@fsf.hu>2011-03-08 22:48:09 +0100
committerAndras Timar <timar@fsf.hu>2011-03-08 22:53:50 +0100
commit9849827a5b8e9c2189f236b452a58eaae95668c6 (patch)
treed168c3b5ed3cc000a75efd9a2bae1fa38fc9ad24 /l10ntools/scripts/localize.pl
parent1acfb268fdcd18894f04216983fda863f8f6f75e (diff)
adapt localize to LibreOffice directory structure
Diffstat (limited to 'l10ntools/scripts/localize.pl')
-rw-r--r--l10ntools/scripts/localize.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/l10ntools/scripts/localize.pl b/l10ntools/scripts/localize.pl
index 7249814febc7..340357cca45b 100644
--- a/l10ntools/scripts/localize.pl
+++ b/l10ntools/scripts/localize.pl
@@ -170,11 +170,11 @@ sub splitfile{
}
close( MYFILE );
- if( !defined $ENV{SOURCE_ROOT_DIR} ){
- print "Error, no SOURCE_ROOT_DIR in env found.\n";
+ if( !defined $ENV{SRC_ROOT} ){
+ print "Error, no SRC_ROOT in env found.\n";
exit( -1 );
}
- my $src_root = $ENV{SOURCE_ROOT_DIR};
+ my $src_root = $ENV{SRC_ROOT};
my $ooo_src_root = $ENV{SRC_ROOT};
my $so_l10n_path = $src_root."/sun/l10n_so/source";
my $ooo_l10n_path = $ooo_src_root."/l10n/source";
@@ -387,7 +387,7 @@ sub collectfiles{
STDOUT->autoflush( 1 );
my $working_path = getcwd();
- chdir $ENV{SOURCE_ROOT_DIR}, if defined $ENV{SOURCE_ROOT_DIR};
+ chdir $ENV{SRC_ROOT}, if defined $ENV{SRC_ROOT};
add_paths( $langhash_ref );
my ( $LOCALIZEPARTICLE , $localizeSDF ) = File::Temp::tempfile();