getAvailableProject(); while( list($key, $project) = each($availableProject) ) { // We must delete this var to be re-generated unset($rm->existingLanguage); // Define it as a project $pm->setProject($project['code']); if ($isCLI) { echo "\n * Update the VCS repository for the " . $project['name'] . "..."; } flush(); // VCS update $rm->updateRepository(); if ($isCLI) { echo "\n * Clean up the database..."; } flush(); // Clean Up DB $rm->cleanUp(); // Set the lock File $lock = new LockFile('project_' . $project['code'] . '_lock_apply_tools'); if ($lock->lock()) { if ($isCLI) { echo "\n * Applying tools on repository..."; } flush(); // Start Revcheck $rm->applyRevCheck(); // Search for NotInEN Old Files $rm->updateNotInEN(); if ($isCLI) { echo "\n * Parsing translation data..."; } flush(); // Parse translators $rm->updateTranslatorInfo(); if ($isCLI) { echo "\n * Compute all statistics..."; } flush(); // Compute all summary TranslationStatistic::getInstance()->computeSummary('all'); TranslatorStatistic::getInstance()->computeSummary('all'); // We start the revcheck's script to make a static page into data/revcheck/ directory // Only for php project if( $project['code'] == 'php' ) { $rm->applyStaticRevcheck(); } // Store this info $info = array(); $info['user'] = 'root'; $rm->setStaticValue('info', 'updateData', json_encode($info), true); } $lock->release(); } if ($isCLI) { echo "\n\nUpdate completed!\n"; } ?>