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);
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',
]);
}