summaryrefslogtreecommitdiffstats
path: root/build/license.php
diff options
context:
space:
mode:
Diffstat (limited to 'build/license.php')
-rw-r--r--build/license.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/build/license.php b/build/license.php
index 11675f21a07..5ada91a0f33 100644
--- a/build/license.php
+++ b/build/license.php
@@ -99,7 +99,7 @@ EOD;
$excludes = array_map(function($item) use ($folder) {
return $folder . '/' . $item;
- }, ['vendor', '3rdparty', '.git', 'l10n', 'templates']);
+ }, ['vendor', '3rdparty', '.git', 'l10n', 'templates', 'composer']);
$iterator = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::SKIP_DOTS);
$iterator = new RecursiveCallbackFilterIterator($iterator, function($item) use ($folder, $excludes){
@@ -154,7 +154,12 @@ With help from many libraries and frameworks including:
} else {
$license = str_replace('@AUTHORS@', $authors, $this->licenseText);
}
- $license = str_replace('@COPYRIGHT@', $copyrightNotices, $license);
+
+ if ($copyrightNotices === '') {
+ $license = str_replace('@COPYRIGHT@', ' *', $license);
+ } else {
+ $license = str_replace('@COPYRIGHT@', $copyrightNotices, $license);
+ }
$source = $this->eatOldLicense($source);
$source = "<?php" . PHP_EOL . $license . PHP_EOL . $source;