#! /usr/bin/env php = 0) { $i = $latest_i; $app_dir = "apps/$app_name/".$app_name."_1.".$i."_$platform"; $file = "$app_dir/".$app_name."_1.".$i."_$platform"; $latest_md5 = md5_file($file); if ($latest_md5 == $wrapper_md5) { $have_latest_wrapper = true; echo "App version is current.\n"; } else { echo "$latest_md5 != $wrapper_md5\n"; } } if (!$have_latest_wrapper) { $i = $latest_i + 1; $app_dir = "apps/$app_name/".$app_name."_1.".$i."_$platform"; $file = "$app_dir/".$app_name."_1.".$i."_$platform"; if (!mkdir($app_dir)) { error("Couldn't created dir: $app_dir"); } if (!copy($wrapper_filename, $file)) { error("Couldn't copy $wrapper_filename to $file"); } chmod($file, 0750); echo "- type 'update_versions', and answer 'y' to all questions.\n"; } $config = file_get_contents('config.xml'); if (!strstr($config, "single_job_assimilator")) { echo "- Add the following to the section of config.xml:\n single_job_assimilator -app $app_name single_job_assimilator_$platform.out single_job_assimilator_$platform.pid Then restart your project by typing bin/stop bin/start "; } ?>