properly break after the first comment ends + allow to pass in one file/folder via commandline argument

This commit is contained in:
Thomas Müller 2015-03-04 14:33:40 +01:00
parent eb066111ed
commit b2b61bdf16
1 changed files with 29 additions and 25 deletions

View File

@ -108,11 +108,11 @@ EOD;
array_shift($lines); array_shift($lines);
continue; continue;
} }
if (strpos($line, '*') !== false) { if (strpos($line, '*/') !== false ) {
array_shift($lines); array_shift($lines);
continue; break;
} }
if (strpos($line, '*/') !== false) { if (strpos($line, '*') !== false) {
array_shift($lines); array_shift($lines);
continue; continue;
} }
@ -144,26 +144,30 @@ EOD;
} }
$licenses = new Licenses; $licenses = new Licenses;
$licenses->exec([ if (isset($argv[1])) {
'../apps/files', $licenses->exec($argv[1]);
'../apps/files_encryption', } else {
'../apps/files_external', $licenses->exec([
'../apps/files_sharing', '../apps/files',
'../apps/files_trashbin', '../apps/files_encryption',
'../apps/files_versions', '../apps/files_external',
'../apps/provisioning_api', '../apps/files_sharing',
'../apps/user_ldap', '../apps/files_trashbin',
'../apps/user_webdavauth', '../apps/files_versions',
'../core', '../apps/provisioning_api',
'../lib', '../apps/user_ldap',
'../ocs', '../apps/user_webdavauth',
'../settings', '../core',
'../console.php', '../lib',
'../cron.php', '../ocs',
'../index.php', '../settings',
'../public.php', '../console.php',
'../remote.php', '../cron.php',
'../status.php', '../index.php',
'../version.php', '../public.php',
]); '../remote.php',
'../status.php',
'../version.php',
]);
}