2015-02-20 14:16:23 +03:00
|
|
|
<?php
|
2020-01-13 16:23:49 +03:00
|
|
|
|
2015-02-20 14:16:23 +03:00
|
|
|
/**
|
|
|
|
* @author Thomas Müller
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2015, ownCloud, Inc.
|
|
|
|
* @license AGPL-3.0
|
|
|
|
*
|
|
|
|
* This code is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
|
|
* as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License, version 3,
|
2020-01-13 16:23:49 +03:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
2015-02-20 14:16:23 +03:00
|
|
|
*
|
|
|
|
*/
|
2020-04-10 15:19:56 +03:00
|
|
|
class Licenses {
|
2016-02-12 11:06:07 +03:00
|
|
|
protected $paths = [];
|
|
|
|
protected $mailMap = [];
|
2016-07-13 18:45:21 +03:00
|
|
|
protected $checkFiles = [];
|
2015-10-26 15:51:22 +03:00
|
|
|
public $authors = [];
|
2015-02-20 14:16:23 +03:00
|
|
|
|
|
|
|
public function __construct() {
|
|
|
|
$this->licenseText = <<<EOD
|
|
|
|
/**
|
2016-07-13 18:45:21 +03:00
|
|
|
@COPYRIGHT@
|
|
|
|
*
|
2016-06-06 19:19:29 +03:00
|
|
|
@AUTHORS@
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
2019-12-03 21:57:53 +03:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2016-06-06 19:19:29 +03:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
EOD;
|
|
|
|
$this->licenseTextLegacy = <<<EOD
|
|
|
|
/**
|
2016-07-13 18:45:21 +03:00
|
|
|
@COPYRIGHT@
|
|
|
|
*
|
2015-02-20 14:16:23 +03:00
|
|
|
@AUTHORS@
|
|
|
|
*
|
|
|
|
* @license AGPL-3.0
|
|
|
|
*
|
|
|
|
* This code is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
|
|
* as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License, version 3,
|
2019-12-03 21:57:53 +03:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
2015-02-20 14:16:23 +03:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
EOD;
|
2016-06-06 19:19:29 +03:00
|
|
|
$this->licenseTextLegacy = str_replace('@YEAR@', date("Y"), $this->licenseTextLegacy);
|
2015-02-20 14:16:23 +03:00
|
|
|
}
|
|
|
|
|
2016-02-12 11:04:40 +03:00
|
|
|
/**
|
|
|
|
* @param string|string[] $folder
|
|
|
|
* @param string|bool $gitRoot
|
|
|
|
*/
|
2020-04-10 17:51:06 +03:00
|
|
|
public function exec($folder, $gitRoot = false) {
|
2015-02-20 14:16:23 +03:00
|
|
|
if (is_array($folder)) {
|
2020-04-10 15:19:56 +03:00
|
|
|
foreach ($folder as $f) {
|
2016-02-12 11:04:40 +03:00
|
|
|
$this->exec($f, $gitRoot);
|
2015-02-20 14:16:23 +03:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-02-12 11:04:40 +03:00
|
|
|
if ($gitRoot !== false && substr($gitRoot, -1) !== '/') {
|
|
|
|
$gitRoot .= '/';
|
|
|
|
}
|
|
|
|
|
2015-02-20 14:16:23 +03:00
|
|
|
if (is_file($folder)) {
|
2016-02-12 11:04:40 +03:00
|
|
|
$this->handleFile($folder, $gitRoot);
|
2016-07-13 18:45:21 +03:00
|
|
|
$this->printFilesToCheck();
|
2015-02-20 14:16:23 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2020-04-09 14:53:40 +03:00
|
|
|
$excludes = array_map(function ($item) use ($folder) {
|
2015-02-20 14:16:23 +03:00
|
|
|
return $folder . '/' . $item;
|
2016-08-15 15:42:39 +03:00
|
|
|
}, ['vendor', '3rdparty', '.git', 'l10n', 'templates', 'composer']);
|
2015-02-20 14:16:23 +03:00
|
|
|
|
|
|
|
$iterator = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::SKIP_DOTS);
|
2020-04-09 14:53:40 +03:00
|
|
|
$iterator = new RecursiveCallbackFilterIterator($iterator, function ($item) use ($folder, $excludes) {
|
2015-02-20 14:16:23 +03:00
|
|
|
/** @var SplFileInfo $item */
|
2020-04-10 15:19:56 +03:00
|
|
|
foreach ($excludes as $exclude) {
|
2015-02-20 14:16:23 +03:00
|
|
|
if (substr($item->getPath(), 0, strlen($exclude)) === $exclude) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
$iterator = new RecursiveIteratorIterator($iterator);
|
|
|
|
$iterator = new RegexIterator($iterator, '/^.+\.php$/i');
|
|
|
|
|
|
|
|
foreach ($iterator as $file) {
|
|
|
|
/** @var SplFileInfo $file */
|
2016-02-12 11:04:40 +03:00
|
|
|
$this->handleFile($file, $gitRoot);
|
2015-02-20 14:16:23 +03:00
|
|
|
}
|
2016-07-13 18:45:21 +03:00
|
|
|
|
|
|
|
$this->printFilesToCheck();
|
2015-10-26 15:51:22 +03:00
|
|
|
}
|
|
|
|
|
2020-04-10 17:51:06 +03:00
|
|
|
public function writeAuthorsFile() {
|
2015-10-26 15:51:22 +03:00
|
|
|
ksort($this->authors);
|
2016-07-21 18:08:43 +03:00
|
|
|
$template = "Nextcloud is written by:
|
2015-10-26 15:51:22 +03:00
|
|
|
@AUTHORS@
|
2015-02-20 14:16:23 +03:00
|
|
|
|
2015-10-26 15:51:22 +03:00
|
|
|
With help from many libraries and frameworks including:
|
|
|
|
Open Collaboration Services
|
|
|
|
SabreDAV
|
|
|
|
jQuery
|
|
|
|
…
|
|
|
|
";
|
2020-04-09 14:53:40 +03:00
|
|
|
$authors = implode(PHP_EOL, array_map(function ($author) {
|
2015-10-26 15:51:22 +03:00
|
|
|
return " - ".$author;
|
|
|
|
}, $this->authors));
|
|
|
|
$template = str_replace('@AUTHORS@', $authors, $template);
|
|
|
|
file_put_contents(__DIR__.'/../AUTHORS', $template);
|
2015-02-20 14:16:23 +03:00
|
|
|
}
|
|
|
|
|
2020-04-10 17:51:06 +03:00
|
|
|
public function handleFile($path, $gitRoot) {
|
2015-02-20 14:16:23 +03:00
|
|
|
$source = file_get_contents($path);
|
2015-03-17 13:58:46 +03:00
|
|
|
if ($this->isMITLicensed($source)) {
|
|
|
|
echo "MIT licensed file: $path" . PHP_EOL;
|
|
|
|
return;
|
|
|
|
}
|
2016-07-13 18:45:21 +03:00
|
|
|
$copyrightNotices = $this->getCopyrightNotices($path, $source);
|
|
|
|
$authors = $this->getAuthors($path, $gitRoot);
|
2016-06-06 19:19:29 +03:00
|
|
|
if ($this->isOwnCloudLicensed($source)) {
|
|
|
|
$license = str_replace('@AUTHORS@', $authors, $this->licenseTextLegacy);
|
2016-07-13 18:45:21 +03:00
|
|
|
$this->checkCopyrightState($path, $gitRoot);
|
2016-06-06 19:19:29 +03:00
|
|
|
} else {
|
|
|
|
$license = str_replace('@AUTHORS@', $authors, $this->licenseText);
|
|
|
|
}
|
2016-08-15 15:51:09 +03:00
|
|
|
|
|
|
|
if ($copyrightNotices === '') {
|
|
|
|
$license = str_replace('@COPYRIGHT@', ' *', $license);
|
|
|
|
} else {
|
|
|
|
$license = str_replace('@COPYRIGHT@', $copyrightNotices, $license);
|
|
|
|
}
|
2015-02-20 14:16:23 +03:00
|
|
|
|
2019-12-03 20:54:35 +03:00
|
|
|
[$source, $isStrict] = $this->eatOldLicense($source);
|
|
|
|
if ($isStrict) {
|
|
|
|
$source = "<?php" . PHP_EOL . PHP_EOL . 'declare(strict_types=1);' . PHP_EOL . PHP_EOL . $license . PHP_EOL . $source;
|
|
|
|
} else {
|
|
|
|
$source = "<?php" . PHP_EOL . $license . PHP_EOL . $source;
|
|
|
|
}
|
2015-02-20 14:16:23 +03:00
|
|
|
file_put_contents($path,$source);
|
2015-03-17 13:58:46 +03:00
|
|
|
echo "License updated: $path" . PHP_EOL;
|
|
|
|
}
|
|
|
|
|
2016-01-15 15:54:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $source
|
2016-07-13 18:45:21 +03:00
|
|
|
* @return bool
|
2016-01-15 15:54:26 +03:00
|
|
|
*/
|
2015-03-17 13:58:46 +03:00
|
|
|
private function isMITLicensed($source) {
|
|
|
|
$lines = explode(PHP_EOL, $source);
|
2020-04-10 15:19:56 +03:00
|
|
|
while (!empty($lines)) {
|
2015-03-17 13:58:46 +03:00
|
|
|
$line = $lines[0];
|
|
|
|
array_shift($lines);
|
|
|
|
if (strpos($line, 'The MIT License') !== false) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
2015-02-20 14:16:23 +03:00
|
|
|
}
|
|
|
|
|
2019-12-03 20:54:35 +03:00
|
|
|
private function isOwnCloudLicensed($source) {
|
|
|
|
$lines = explode(PHP_EOL, $source);
|
2020-04-10 15:19:56 +03:00
|
|
|
while (!empty($lines)) {
|
2019-12-03 20:54:35 +03:00
|
|
|
$line = $lines[0];
|
|
|
|
array_shift($lines);
|
|
|
|
if (strpos($line, 'ownCloud, Inc') !== false || strpos($line, 'ownCloud GmbH') !== false) {
|
|
|
|
return true;
|
2016-06-06 19:19:29 +03:00
|
|
|
}
|
2019-12-03 20:54:35 +03:00
|
|
|
}
|
2016-06-06 19:19:29 +03:00
|
|
|
|
2019-12-03 20:54:35 +03:00
|
|
|
return false;
|
|
|
|
}
|
2016-07-13 18:45:21 +03:00
|
|
|
|
2016-01-15 15:54:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $source
|
2016-02-12 11:04:40 +03:00
|
|
|
* @return string
|
2016-01-15 15:54:26 +03:00
|
|
|
*/
|
2015-02-20 14:16:23 +03:00
|
|
|
private function eatOldLicense($source) {
|
|
|
|
$lines = explode(PHP_EOL, $source);
|
2019-12-03 20:54:35 +03:00
|
|
|
$isStrict = false;
|
2020-04-10 15:19:56 +03:00
|
|
|
while (!empty($lines)) {
|
2015-02-20 14:16:23 +03:00
|
|
|
$line = $lines[0];
|
2019-12-03 20:54:35 +03:00
|
|
|
if (trim($line) === '<?php') {
|
|
|
|
array_shift($lines);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (strpos($line, '<?php declare(strict_types') !== false) {
|
|
|
|
$isStrict = true;
|
|
|
|
array_shift($lines);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (strpos($line, 'declare (strict_types') !== false) {
|
|
|
|
$isStrict = true;
|
|
|
|
array_shift($lines);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (strpos($line, 'declare(strict_types') !== false) {
|
|
|
|
$isStrict = true;
|
2015-02-20 14:16:23 +03:00
|
|
|
array_shift($lines);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (strpos($line, '/**') !== false) {
|
|
|
|
array_shift($lines);
|
|
|
|
continue;
|
|
|
|
}
|
2020-04-09 17:07:47 +03:00
|
|
|
if (strpos($line, '*/') !== false) {
|
2015-02-20 14:16:23 +03:00
|
|
|
array_shift($lines);
|
2015-03-04 16:33:40 +03:00
|
|
|
break;
|
2015-02-20 14:16:23 +03:00
|
|
|
}
|
2015-03-04 16:33:40 +03:00
|
|
|
if (strpos($line, '*') !== false) {
|
2015-02-20 14:16:23 +03:00
|
|
|
array_shift($lines);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (trim($line) === '') {
|
|
|
|
array_shift($lines);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2019-12-03 20:54:35 +03:00
|
|
|
return [implode(PHP_EOL, $lines), $isStrict];
|
2015-02-20 14:16:23 +03:00
|
|
|
}
|
|
|
|
|
2016-07-13 18:45:21 +03:00
|
|
|
private function getCopyrightNotices($path, $file) {
|
|
|
|
$licenseHeaderEndsAtLine = (int)trim(shell_exec("grep -n '*/' $path | head -n 1 | cut -d ':' -f 1"));
|
2016-07-21 19:01:31 +03:00
|
|
|
$lineByLine = explode(PHP_EOL, $file, $licenseHeaderEndsAtLine + 1);
|
2016-07-13 18:45:21 +03:00
|
|
|
$copyrightNotice = [];
|
2016-07-21 19:01:31 +03:00
|
|
|
$licensePart = array_slice($lineByLine, 0, $licenseHeaderEndsAtLine);
|
|
|
|
foreach ($licensePart as $line) {
|
2016-07-13 18:45:21 +03:00
|
|
|
if (strpos($line, '@copyright') !== false) {
|
|
|
|
$copyrightNotice[] = $line;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return implode(PHP_EOL, $copyrightNotice);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* check if all lines where changed after the Nextcloud fork.
|
|
|
|
* That's not a guarantee that we can switch to AGPLv3 or later,
|
|
|
|
* but a good indicator that we should have a look at the file
|
|
|
|
*
|
|
|
|
* @param $path
|
|
|
|
* @param $gitRoot
|
|
|
|
*/
|
|
|
|
private function checkCopyrightState($path, $gitRoot) {
|
|
|
|
// This was the date the Nextcloud fork was created
|
|
|
|
$deadline = new DateTime('06/06/2016');
|
|
|
|
$deadlineTimestamp = $deadline->getTimestamp();
|
|
|
|
|
|
|
|
$buildDir = getcwd();
|
|
|
|
if ($gitRoot) {
|
|
|
|
chdir($gitRoot);
|
|
|
|
$path = substr($path, strlen($gitRoot));
|
|
|
|
}
|
|
|
|
$out = shell_exec("git --no-pager blame --line-porcelain $path | sed -n 's/^author-time //p'");
|
|
|
|
if ($gitRoot) {
|
|
|
|
chdir($buildDir);
|
|
|
|
}
|
|
|
|
$timestampChanges = explode(PHP_EOL, $out);
|
2020-10-05 16:12:57 +03:00
|
|
|
$timestampChanges = array_slice($timestampChanges, 0, count($timestampChanges) - 1);
|
2016-07-13 18:45:21 +03:00
|
|
|
foreach ($timestampChanges as $timestamp) {
|
|
|
|
if ((int)$timestamp < $deadlineTimestamp) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//all changes after the deadline
|
|
|
|
$this->checkFiles[] = $path;
|
|
|
|
}
|
|
|
|
|
|
|
|
private function printFilesToCheck() {
|
|
|
|
if (!empty($this->checkFiles)) {
|
|
|
|
print "\n";
|
2016-07-21 18:08:43 +03:00
|
|
|
print "For following files all lines changed since the Nextcloud fork." . PHP_EOL;
|
2016-07-13 18:45:21 +03:00
|
|
|
print "Please check if these files can be moved over to AGPLv3 or later" . PHP_EOL;
|
|
|
|
print "\n";
|
|
|
|
foreach ($this->checkFiles as $file) {
|
|
|
|
print $file . PHP_EOL;
|
|
|
|
}
|
|
|
|
print "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private function getAuthors($file, $gitRoot) {
|
2015-10-05 22:15:01 +03:00
|
|
|
// only add authors that changed code and not the license header
|
|
|
|
$licenseHeaderEndsAtLine = trim(shell_exec("grep -n '*/' $file | head -n 1 | cut -d ':' -f 1"));
|
2016-02-12 11:04:40 +03:00
|
|
|
$buildDir = getcwd();
|
|
|
|
if ($gitRoot) {
|
|
|
|
chdir($gitRoot);
|
|
|
|
$file = substr($file, strlen($gitRoot));
|
|
|
|
}
|
2015-10-05 22:15:01 +03:00
|
|
|
$out = shell_exec("git blame --line-porcelain -L $licenseHeaderEndsAtLine, $file | sed -n 's/^author //p;s/^author-mail //p' | sed 'N;s/\\n/ /' | sort -f | uniq");
|
2016-02-12 11:04:40 +03:00
|
|
|
if ($gitRoot) {
|
|
|
|
chdir($buildDir);
|
|
|
|
}
|
2015-02-20 14:16:23 +03:00
|
|
|
$authors = explode(PHP_EOL, $out);
|
|
|
|
|
2020-04-09 14:53:40 +03:00
|
|
|
$authors = array_filter($authors, function ($author) {
|
2015-02-25 16:00:30 +03:00
|
|
|
return !in_array($author, [
|
|
|
|
'',
|
|
|
|
'Not Committed Yet <not.committed.yet>',
|
2016-03-01 19:48:23 +03:00
|
|
|
'Jenkins for ownCloud <owncloud-bot@tmit.eu>',
|
|
|
|
'Scrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>',
|
|
|
|
]);
|
2015-02-20 14:16:23 +03:00
|
|
|
});
|
2016-02-12 11:06:07 +03:00
|
|
|
|
|
|
|
if ($gitRoot) {
|
|
|
|
$authors = array_map([$this, 'checkCoreMailMap'], $authors);
|
|
|
|
$authors = array_unique($authors);
|
|
|
|
}
|
|
|
|
|
2020-04-09 14:53:40 +03:00
|
|
|
$authors = array_map(function ($author) {
|
2017-10-24 12:57:33 +03:00
|
|
|
$author = $this->fixInvalidEmail($author);
|
2016-07-13 18:45:21 +03:00
|
|
|
$this->authors[$author] = $author;
|
|
|
|
return " * @author $author";
|
|
|
|
}, $authors);
|
|
|
|
|
2015-02-20 14:16:23 +03:00
|
|
|
return implode(PHP_EOL, $authors);
|
|
|
|
}
|
2016-02-12 11:06:07 +03:00
|
|
|
|
|
|
|
private function checkCoreMailMap($author) {
|
|
|
|
if (empty($this->mailMap)) {
|
|
|
|
$content = file_get_contents(__DIR__ . '/../.mailmap');
|
|
|
|
$entries = explode("\n", $content);
|
|
|
|
foreach ($entries as $entry) {
|
|
|
|
if (strpos($entry, '> ') === false) {
|
|
|
|
$this->mailMap[$entry] = $entry;
|
|
|
|
} else {
|
2021-01-12 12:15:48 +03:00
|
|
|
[$use, $actual] = explode('> ', $entry);
|
2016-02-12 11:06:07 +03:00
|
|
|
$this->mailMap[$actual] = $use . '>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($this->mailMap[$author])) {
|
|
|
|
return $this->mailMap[$author];
|
|
|
|
}
|
|
|
|
return $author;
|
|
|
|
}
|
2017-10-24 12:57:33 +03:00
|
|
|
|
|
|
|
private function fixInvalidEmail($author) {
|
|
|
|
preg_match('/<(.*)>/', $author, $mailMatch);
|
|
|
|
if (count($mailMatch) === 2 && !filter_var($mailMatch[1], FILTER_VALIDATE_EMAIL)) {
|
|
|
|
$author = str_replace('<'.$mailMatch[1].'>', '"'.$mailMatch[1].'"', $author);
|
|
|
|
}
|
|
|
|
return $author;
|
|
|
|
}
|
2015-02-20 14:16:23 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
$licenses = new Licenses;
|
2015-03-04 16:33:40 +03:00
|
|
|
if (isset($argv[1])) {
|
2016-02-12 11:04:40 +03:00
|
|
|
$licenses->exec($argv[1], isset($argv[2]) ? $argv[1] : false);
|
2015-03-04 16:33:40 +03:00
|
|
|
} else {
|
|
|
|
$licenses->exec([
|
2019-12-03 20:54:35 +03:00
|
|
|
'../apps/accessibility',
|
2016-07-21 18:08:43 +03:00
|
|
|
'../apps/admin_audit',
|
2019-12-03 20:54:35 +03:00
|
|
|
'../apps/cloud_federation_api',
|
2016-03-01 19:52:32 +03:00
|
|
|
'../apps/comments',
|
2016-01-12 16:39:31 +03:00
|
|
|
'../apps/dav',
|
2015-03-30 23:36:48 +03:00
|
|
|
'../apps/encryption',
|
2016-03-01 19:52:32 +03:00
|
|
|
'../apps/federatedfilesharing',
|
2016-01-12 16:39:31 +03:00
|
|
|
'../apps/federation',
|
|
|
|
'../apps/files',
|
2015-03-04 16:33:40 +03:00
|
|
|
'../apps/files_external',
|
|
|
|
'../apps/files_sharing',
|
|
|
|
'../apps/files_trashbin',
|
|
|
|
'../apps/files_versions',
|
2019-12-03 20:54:35 +03:00
|
|
|
'../apps/lookup_server_connector',
|
|
|
|
'../apps/oauth2',
|
2015-03-04 16:33:40 +03:00
|
|
|
'../apps/provisioning_api',
|
2019-12-03 20:54:35 +03:00
|
|
|
'../apps/settings',
|
|
|
|
'../apps/sharebymail',
|
2016-03-01 19:52:32 +03:00
|
|
|
'../apps/systemtags',
|
|
|
|
'../apps/testing',
|
2016-07-21 18:08:43 +03:00
|
|
|
'../apps/theming',
|
2019-12-03 20:54:35 +03:00
|
|
|
'../apps/twofactor_backupcodes',
|
2016-03-01 19:52:32 +03:00
|
|
|
'../apps/updatenotification',
|
2015-03-04 16:33:40 +03:00
|
|
|
'../apps/user_ldap',
|
2016-07-21 18:08:43 +03:00
|
|
|
'../build/integration/features/bootstrap',
|
2015-03-04 16:33:40 +03:00
|
|
|
'../core',
|
|
|
|
'../lib',
|
|
|
|
'../ocs',
|
|
|
|
'../console.php',
|
|
|
|
'../cron.php',
|
|
|
|
'../index.php',
|
|
|
|
'../public.php',
|
|
|
|
'../remote.php',
|
|
|
|
'../status.php',
|
|
|
|
'../version.php',
|
|
|
|
]);
|
2015-10-26 15:51:22 +03:00
|
|
|
$licenses->writeAuthorsFile();
|
2015-03-04 16:33:40 +03:00
|
|
|
}
|