Example #1
0
 }
 //vars.ymlのincludesを処理
 foreach ($include_vars_list as $ipath) {
     try {
         $inc_yaml = $yamlp->parse(file_get_contents($ipath));
     } catch (ParseException $e) {
         $phest->add('builderror', basename($ipath) . ' の解析に失敗しました。エラー: ' . $e->getMessage());
         $inc_yaml = array();
     }
     $core_vars_yaml = array_merge_recursive_distinct($core_vars_yaml, $inc_yaml);
 }
 //------------- build処理
 $lang_list = $config_yaml['languages'];
 if ($lang_list) {
     if (!file_exists($path_languages_yml)) {
         File::buildTouch($path_languages_yml);
     }
     $LG = new LanguageBuilder($phest, $lang_list);
     $LG->process($path_languages_yml);
 }
 $build_option = '';
 if (!empty($config_yaml['buildclear'])) {
     File::removeDir($dir_output);
     mkdir($dir_output, 0777);
 }
 if ($build_option) {
     $build_option = ' <code>' . trim($build_option) . '</code>';
 }
 $phest->add('build', 'ビルド元: ' . realpath($dir_source));
 $phest->add('build', 'ビルド先: <a href="' . $home_local . '" target="_blank">' . realpath($dir_output) . '</a>' . $build_option);
 if (class_exists('FilesystemIterator', false)) {