1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 20:57:36 +02:00
This commit is contained in:
pomaxa
2012-06-15 13:19:12 +03:00
parent 6b4f4af85f
commit 246ea3a9f6

View File

@@ -1,28 +0,0 @@
#!/usr/bin/env php
<?php
$phar = new Phar('monolog.phar', 0, 'logger');
$phar->setSignatureAlgorithm(Phar::SHA1);
$phar->startBuffering();
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__.'/src/Monolog', FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::CHILD_FIRST);
foreach ($files as $file) {
if (false !== strpos($file->getRealPath(), '.git')) {
continue;
}
$path = str_replace(realpath(__DIR__).'/', '', $file->getRealPath());
$phar->addFile($file->getRealPath(), $path);
echo "$path\n";
}
$phar->addFile('src/Monolog/Logger.php');
$phar->setDefaultStub('src/Monolog/Logger.php', 'Logger.php');
$phar->stopBuffering();
$phar->compressFiles(Phar::GZ);
unset($phar);