#!/usr/bin/env php
<?php

$file = __DIR__ . '/PEL.phar';

@unlink($file . '.tar.gz');

$phar = new Phar($file);
$phar->setStub($phar->createDefaultStub('PEL.php'));
$phar->buildFromDirectory( __DIR__ . '/src',  '#\.php$#');
$phar->convertToExecutable(Phar::TAR, Phar::GZ);
rename('PEL.phar.tar.gz', 'PEL.phar');

?>

#!/usr/bin/env php
<?php

$file = __DIR__ . '/PEL.phar';

@unlink($file . '.tar.gz');

$phar = new Phar($file);
$phar->setStub($phar->createDefaultStub('PEL.php'));
$phar->buildFromDirectory( __DIR__ . '/src',  '#\.php$#');

?>

Switch to using non-compressed phar since stubs don't work in the compressed ones.
Switch to using non-compressed phar since stubs don't work in the compressed ones.
