[Intl] Improved build scripts

This commit is contained in:
Bernhard Schussek 2013-03-16 11:43:15 +01:00
parent aceb20d610
commit 470927d99e
2 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,7 @@ use Symfony\Component\Filesystem\Filesystem;
require_once __DIR__ . '/common.php';
require_once __DIR__ . '/autoload.php';
if ($GLOBALS['argc'] > 3) {
if ($GLOBALS['argc'] > 3 || 2 === $GLOBALS['argc'] && '-h' === $GLOBALS['argv'][1]) {
bailout(<<<MESSAGE
Usage: php update-icu-component.php <path/to/icu/source> <path/to/icu/build>

View File

@ -61,6 +61,11 @@ if ($shortIcuVersionInIntlComponent !== $shortIcuVersionInIcuComponent) {
bailout("The ICU version of the component ($shortIcuVersionInIcuComponent) does not match the ICU version of the stub classes in the Intl component ($shortIcuVersionInIntlComponent).");
}
echo wordwrap("Make sure that you don't have any ICU development files " .
"installed. If the build fails, try to run:\n", LINE_WIDTH);
echo "\n sudo apt-get remove libicu-dev\n\n";
$icuVersionInIcuComponent = IcuData::getVersion();
echo "Compiling stubs for ICU version $icuVersionInIcuComponent.\n";