From 470927d99e69d959f5af2b4692c15acb7c842cce Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Sat, 16 Mar 2013 11:43:15 +0100 Subject: [PATCH] [Intl] Improved build scripts --- .../Component/Intl/Resources/bin/update-icu-component.php | 2 +- src/Symfony/Component/Intl/Resources/bin/update-stubs.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Intl/Resources/bin/update-icu-component.php b/src/Symfony/Component/Intl/Resources/bin/update-icu-component.php index 93c3e8f5f4..2b94fe417f 100644 --- a/src/Symfony/Component/Intl/Resources/bin/update-icu-component.php +++ b/src/Symfony/Component/Intl/Resources/bin/update-icu-component.php @@ -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(<< diff --git a/src/Symfony/Component/Intl/Resources/bin/update-stubs.php b/src/Symfony/Component/Intl/Resources/bin/update-stubs.php index a99fe6fde9..bfc917693f 100644 --- a/src/Symfony/Component/Intl/Resources/bin/update-stubs.php +++ b/src/Symfony/Component/Intl/Resources/bin/update-stubs.php @@ -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";