1
0
Fork 0

fix LICENSE hack in compile script

pull/392/head
Jordi Boggiano 2012-03-06 08:44:41 +01:00
parent e63d24e438
commit 5b42f99441
1 changed files with 3 additions and 1 deletions

View File

@ -104,8 +104,10 @@ class Compiler
if ($strip) { if ($strip) {
$content = php_strip_whitespace($file); $content = php_strip_whitespace($file);
} else { } elseif ('LICENSE' === basename($file)) {
$content = "\n".file_get_contents($file)."\n"; $content = "\n".file_get_contents($file)."\n";
} else {
$content = file_get_contents($file);
} }
$content = str_replace('@package_version@', $this->version, $content); $content = str_replace('@package_version@', $this->version, $content);