Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 470927d

Browse files
committed
[Intl] Improved build scripts
1 parent aceb20d commit 470927d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Component/Intl/Resources/bin/update-icu-component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
require_once __DIR__ . '/common.php';
2525
require_once __DIR__ . '/autoload.php';
2626

27-
if ($GLOBALS['argc'] > 3) {
27+
if ($GLOBALS['argc'] > 3 || 2 === $GLOBALS['argc'] && '-h' === $GLOBALS['argv'][1]) {
2828
bailout(<<<MESSAGE
2929
Usage: php update-icu-component.php <path/to/icu/source> <path/to/icu/build>
3030

src/Symfony/Component/Intl/Resources/bin/update-stubs.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
bailout("The ICU version of the component ($shortIcuVersionInIcuComponent) does not match the ICU version of the stub classes in the Intl component ($shortIcuVersionInIntlComponent).");
6262
}
6363

64+
echo wordwrap("Make sure that you don't have any ICU development files " .
65+
"installed. If the build fails, try to run:\n", LINE_WIDTH);
66+
67+
echo "\n sudo apt-get remove libicu-dev\n\n";
68+
6469
$icuVersionInIcuComponent = IcuData::getVersion();
6570

6671
echo "Compiling stubs for ICU version $icuVersionInIcuComponent.\n";

0 commit comments

Comments
 (0)