if ('cli' !== \PHP_SAPI
) { throw new Exception('This script must be run from the command line.'
);
}require_once __DIR__.'/common.php';
require_once __DIR__.'/autoload.php';
$argc =
$_SERVER['argc'
];
$argv =
$_SERVER['argv'
];
if ($argc > 3 || 2 ===
$argc && '-h' ===
$argv[1
]) { bailout(<<<'MESSAGE'
Usage: php update-data.php <path/to/icu/source> <path/to/icu/build>
Updates the ICU data for Symfony to the latest version of ICU.
If you downloaded the git repository before, you can pass the path to the
repository source in the first optional argument.
If you also built the repository before, you can pass the directory where that
build is stored in the second parameter. The build directory needs to contain
the subdirectories bin/ and lib/.
For running this script, the intl extension must be loaded and all vendors
must have been installed through composer:
composer install