Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-04 16:33:40 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-26 13:38:40 +0300
commitb2b61bdf161f04829424066226c58ae179a75a7d (patch)
treea47f59274b0fa88bb6769aa3fc3293a7876bd294 /build/license.php
parenteb066111ed0552a31b7f2146e4f24075aeed1ddf (diff)
properly break after the first comment ends + allow to pass in one file/folder via commandline argument
Diffstat (limited to 'build/license.php')
-rw-r--r--build/license.php54
1 files changed, 29 insertions, 25 deletions
diff --git a/build/license.php b/build/license.php
index 322ce2e5e47..f7fd52d3977 100644
--- a/build/license.php
+++ b/build/license.php
@@ -108,11 +108,11 @@ EOD;
array_shift($lines);
continue;
}
- if (strpos($line, '*') !== false) {
+ if (strpos($line, '*/') !== false ) {
array_shift($lines);
- continue;
+ break;
}
- if (strpos($line, '*/') !== false) {
+ if (strpos($line, '*') !== false) {
array_shift($lines);
continue;
}
@@ -144,26 +144,30 @@ EOD;
}
$licenses = new Licenses;
-$licenses->exec([
- '../apps/files',
- '../apps/files_encryption',
- '../apps/files_external',
- '../apps/files_sharing',
- '../apps/files_trashbin',
- '../apps/files_versions',
- '../apps/provisioning_api',
- '../apps/user_ldap',
- '../apps/user_webdavauth',
- '../core',
- '../lib',
- '../ocs',
- '../settings',
- '../console.php',
- '../cron.php',
- '../index.php',
- '../public.php',
- '../remote.php',
- '../status.php',
- '../version.php',
-]);
+if (isset($argv[1])) {
+ $licenses->exec($argv[1]);
+} else {
+ $licenses->exec([
+ '../apps/files',
+ '../apps/files_encryption',
+ '../apps/files_external',
+ '../apps/files_sharing',
+ '../apps/files_trashbin',
+ '../apps/files_versions',
+ '../apps/provisioning_api',
+ '../apps/user_ldap',
+ '../apps/user_webdavauth',
+ '../core',
+ '../lib',
+ '../ocs',
+ '../settings',
+ '../console.php',
+ '../cron.php',
+ '../index.php',
+ '../public.php',
+ '../remote.php',
+ '../status.php',
+ '../version.php',
+ ]);
+}