[Libreoffice-commits] .: l10ntools/scripts
Andras Timar
timar at kemper.freedesktop.org
Tue Feb 28 02:02:49 PST 2012
l10ntools/scripts/propex | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit cb578c77e23a409f434022dd175c5bd702877ffa
Author: Andras Timar <atimar at suse.com>
Date: Tue Feb 28 11:03:02 2012 +0100
fix behaviour of propex tool on Windows
diff --git a/l10ntools/scripts/propex b/l10ntools/scripts/propex
index 6a402a2..35dcb25 100755
--- a/l10ntools/scripts/propex
+++ b/l10ntools/scripts/propex
@@ -41,7 +41,8 @@ getopts("ep:r:i:o:l:", \%options);
unless ( $options{i} =~ m/en_US/ ) {exit 0;}
-my ($unsued1, $dir, $unused2) = File::Basename::fileparse($options{i});
+$options{i} =~ s|\\|/|g; # fix path on Windows, Perl expects / separator
+my ($unused1, $dir, $unused2) = File::Basename::fileparse($options{i});
my $file = substr ( Cwd::abs_path($options{i}), length(Cwd::abs_path($dir . $options{r})) + 1 );
$file =~ s|/|\\|g;
More information about the Libreoffice-commits
mailing list