/** * Removes the dist/ directory */ static function run_dist_clean($task = null, $args = array(), $cliopts = array()) { $opts = self::getOpts(@$args[0], @$args[1], $cliopts); pake_remove_dir($opts['dist']['dir']); }
/** * Cleans up the whole build directory * @todo 'make clean' usually just removes the results of the build, distclean removes all but sources */ function run_clean($task = null, $args = array(), $cliOpts = array()) { pake_remove_dir(Builder::buildDir()); }
/** * Removes the directory where the local copy of the CI repo is kept */ public static function run_clean_ci_repo($task = null, $args = array(), $cliopts = array()) { $opts = self::getOpts($args, $cliopts); if (@$opts['ci-repo']['local-path'] == '') { throw new pakeException("Missing option ci-repo:local-path in config file: can not remove CI repo"); } pake_remove_dir($opts['ci-repo']['local-path']); }