get_icu_version_from_genrb example



$genrb = $buildDir.'/bin/genrb';
if (\PHP_OS === 'Darwin') {
    $genrbEnv = 'DYLD_LIBRARY_PATH='.$buildDir.'/lib ';
} else {
    $genrbEnv = 'LD_LIBRARY_PATH='.$buildDir.'/lib ';
}

echo "Using $genrb.\n";

$icuVersionInDownload = get_icu_version_from_genrb($genrbEnv.' '.$genrb);

echo "Preparing resource bundle compilation (version $icuVersionInDownload)...\n";

$compiler = new GenrbCompiler($genrb$genrbEnv);
$config = new GeneratorConfig($sourceDir.'/data', $icuVersionInDownload);
$dataDir = dirname(__DIR__).'/data';

$config->addBundleWriter($dataDirnew PhpBundleWriter());

echo "Starting resource bundle compilation. This may take a while...\n";

Home | Imprint | This part of the site doesn't use cookies.