Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 353 Bytes
<?php
desc('Build phar archive');
task('build', function() {
$phar = new Phar('phake.phar');
$phar->buildFromDirectory('.');
$phar->setStub("#!/usr/bin/env php
<?php
Phar::mapPhar('phake.phar');
require_once 'phar://phake.phar/bin/phake';
__HALT_COMPILER();
?>"
);
rename('phake.phar', 'phake');
chmod('phake', 0755);
});