scuffed-code/tools/colprobe/genCollData.pl
Andy Heninger 8fbddcf5c7 ICU-4301 committ the collation probe tools
X-SVN-Rev: 20601
2006-10-27 00:03:21 +00:00

24 lines
538 B
Perl
Executable File

#!/usr/bin/perl -w
use strict;
my $localeMinusA = `locale -a`;
my @locales = split(/\n/, $localeMinusA);
my $locale;
my $command;
my $platform = $ARGV[0];
mkdir $platform."logs";
mkdir $platform;
foreach $locale (@locales) {
$command = "~/src/icu/source/extra/colprobe/colprobe --output resb --platform linux --ref linux $locale >$platform"."logs/$locale"."Log.txt 2>&1";
($locale, $_) = split(/\./, $locale);
$command .= "; cp /usr/share/i18n/locales/$locale $platform/";
print "$command\n";
`$command`;
#chdir "..";
}