12e5b6d6dSopenharmony_ci#!/usr/bin/perl -w 22e5b6d6dSopenharmony_ci 32e5b6d6dSopenharmony_ci# 42e5b6d6dSopenharmony_ci# Copyright (C) 2017 and later: Unicode, Inc. and others. 52e5b6d6dSopenharmony_ci# License & terms of use: http://www.unicode.org/copyright.html 62e5b6d6dSopenharmony_ci# 72e5b6d6dSopenharmony_ci 82e5b6d6dSopenharmony_ciuse strict; 92e5b6d6dSopenharmony_ci 102e5b6d6dSopenharmony_cimy $localeMinusA = `locale -a`; 112e5b6d6dSopenharmony_cimy @locales = split(/\n/, $localeMinusA); 122e5b6d6dSopenharmony_cimy $locale; 132e5b6d6dSopenharmony_cimy $command; 142e5b6d6dSopenharmony_ci 152e5b6d6dSopenharmony_cimy $platform = $ARGV[0]; 162e5b6d6dSopenharmony_ci 172e5b6d6dSopenharmony_cimkdir $platform."logs"; 182e5b6d6dSopenharmony_cimkdir $platform; 192e5b6d6dSopenharmony_ci 202e5b6d6dSopenharmony_ciforeach $locale (@locales) { 212e5b6d6dSopenharmony_ci $command = "~/src/icu/source/extra/colprobe/colprobe --output resb --platform linux --ref linux $locale >$platform"."logs/$locale"."Log.txt 2>&1"; 222e5b6d6dSopenharmony_ci ($locale, $_) = split(/\./, $locale); 232e5b6d6dSopenharmony_ci $command .= "; cp /usr/share/i18n/locales/$locale $platform/"; 242e5b6d6dSopenharmony_ci print "$command\n"; 252e5b6d6dSopenharmony_ci `$command`; 262e5b6d6dSopenharmony_ci #chdir ".."; 272e5b6d6dSopenharmony_ci 282e5b6d6dSopenharmony_ci} 29