]> source.dussan.org Git - nextcloud-server.git/commitdiff
properly break after the first comment ends + allow to pass in one file/folder via...
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 4 Mar 2015 13:33:40 +0000 (14:33 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 26 Mar 2015 10:38:40 +0000 (11:38 +0100)
build/license.php

index 322ce2e5e4713a3ae81b12ba1963af5196cfb29a..f7fd52d3977649c16028e1c15c1b1e20e41d9026 100644 (file)
@@ -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',
+       ]);
+}