summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-02-28 11:03:02 +0100
committerAndras Timar <atimar@suse.com>2012-02-28 11:03:02 +0100
commitcb578c77e23a409f434022dd175c5bd702877ffa (patch)
treeda6eb2c3f82eaea3330da5f9e2881486669784d4 /l10ntools
parentf31548f70c85a83fe820c6ae1c9b9803074039b0 (diff)
fix behaviour of propex tool on Windows
Diffstat (limited to 'l10ntools')
-rwxr-xr-xl10ntools/scripts/propex3
1 files changed, 2 insertions, 1 deletions
diff --git a/l10ntools/scripts/propex b/l10ntools/scripts/propex
index 6a402a213ae5..35dcb258e381 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;