diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-21 18:01:31 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-07-21 18:06:31 +0200 |
commit | b64c6d6993ca30882f7c7e06344e1b7de34ca817 (patch) | |
tree | 44557231eb95fbe322fab054b7e06dfdbf71b125 /build | |
parent | c98de829c48da80dcdcd6db88b4575369950e2dc (diff) | |
download | nextcloud-server-b64c6d6993ca30882f7c7e06344e1b7de34ca817.tar.gz nextcloud-server-b64c6d6993ca30882f7c7e06344e1b7de34ca817.zip |
only search the license header for @copyright statements
Diffstat (limited to 'build')
-rw-r--r-- | build/license.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/license.php b/build/license.php index 4091afe2fb5..11675f21a07 100644 --- a/build/license.php +++ b/build/license.php @@ -228,9 +228,10 @@ With help from many libraries and frameworks including: private function getCopyrightNotices($path, $file) { $licenseHeaderEndsAtLine = (int)trim(shell_exec("grep -n '*/' $path | head -n 1 | cut -d ':' -f 1")); - $lineByLine = explode(PHP_EOL, $file, $licenseHeaderEndsAtLine); + $lineByLine = explode(PHP_EOL, $file, $licenseHeaderEndsAtLine + 1); $copyrightNotice = []; - foreach ($lineByLine as $line) { + $licensePart = array_slice($lineByLine, 0, $licenseHeaderEndsAtLine); + foreach ($licensePart as $line) { if (strpos($line, '@copyright') !== false) { $copyrightNotice[] = $line; } |