$filesystem =
new Filesystem();
$sourceDir =
$repoDir.'/icu4c/source';
if ($argc >= 3
) { $buildDir =
$argv[2
];
} else { // Always build genrb so that we can determine the ICU version of the
// download by running genrb --version
echo "Building genrb.\n";
cd($sourceDir);
echo "Running configure...\n";
$buildDir =
sys_get_temp_dir().'/icu-data/'.
$shortIcuVersion.'/build';
$filesystem->
remove($buildDir);
$filesystem->
mkdir($buildDir);
run('./configure --prefix='.
$buildDir.' 2>&1'
);
echo "Running make...\n";