echo LINE;
echo centered('ICU Resource Bundle Compilation'
)."\n";
echo LINE;
if (!Intl::
isExtensionLoaded()) { bailout('The intl extension for PHP is not installed.'
);
}if ($argc >= 2
) { $repoDir =
$argv[1
];
$git =
new GitRepository($repoDir);
echo "Using the existing git repository at {
$repoDir}.\n";
} else { echo "Starting git clone. This may take a while...\n";
$repoDir =
sys_get_temp_dir().'/icu-data';
$git = GitRepository::
download('https://github.com/unicode-org/icu.git',
$repoDir);
echo "Git clone to {
$repoDir} complete.\n";
}