[Intl] Improved build scripts
This commit is contained in:
parent
aceb20d610
commit
470927d99e
@ -24,7 +24,7 @@ use Symfony\Component\Filesystem\Filesystem;
|
|||||||
require_once __DIR__ . '/common.php';
|
require_once __DIR__ . '/common.php';
|
||||||
require_once __DIR__ . '/autoload.php';
|
require_once __DIR__ . '/autoload.php';
|
||||||
|
|
||||||
if ($GLOBALS['argc'] > 3) {
|
if ($GLOBALS['argc'] > 3 || 2 === $GLOBALS['argc'] && '-h' === $GLOBALS['argv'][1]) {
|
||||||
bailout(<<<MESSAGE
|
bailout(<<<MESSAGE
|
||||||
Usage: php update-icu-component.php <path/to/icu/source> <path/to/icu/build>
|
Usage: php update-icu-component.php <path/to/icu/source> <path/to/icu/build>
|
||||||
|
|
||||||
|
@ -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).");
|
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();
|
$icuVersionInIcuComponent = IcuData::getVersion();
|
||||||
|
|
||||||
echo "Compiling stubs for ICU version $icuVersionInIcuComponent.\n";
|
echo "Compiling stubs for ICU version $icuVersionInIcuComponent.\n";
|
||||||
|
Reference in New Issue
Block a user