From: Thomas Müller Date: Tue, 17 Mar 2015 10:58:46 +0000 (+0100) Subject: detect MIT licensed files and ignore them for now X-Git-Tag: v8.1.0alpha1~164^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=653ad63e9b9e14c8000319da6adc1c74b69b6db1;p=nextcloud-server.git detect MIT licensed files and ignore them for now --- diff --git a/build/license.php b/build/license.php index f7fd52d3977..a8d82b084e6 100644 --- a/build/license.php +++ b/build/license.php @@ -87,13 +87,30 @@ EOD; function handleFile($path) { $source = file_get_contents($path); + if ($this->isMITLicensed($source)) { + echo "MIT licensed file: $path" . PHP_EOL; + return; + } $source = $this->eatOldLicense($source); $authors = $this->getAuthors($path); $license = str_replace('@AUTHORS@', $authors, $this->licenseText); $source = "