@@ -5,16 +5,16 @@ |
||
| 5 | 5 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 6 | 6 | */ |
| 7 | 7 | $CONFIG = [ |
| 8 | - 'apps_paths' => [ |
|
| 9 | - [ |
|
| 10 | - 'path' => '/var/www/html/apps', |
|
| 11 | - 'url' => '/apps', |
|
| 12 | - 'writable' => false, |
|
| 13 | - ], |
|
| 14 | - [ |
|
| 15 | - 'path' => '/var/www/html/apps-cypress', |
|
| 16 | - 'url' => '/apps-cypress', |
|
| 17 | - 'writable' => true, |
|
| 18 | - ], |
|
| 19 | - ], |
|
| 8 | + 'apps_paths' => [ |
|
| 9 | + [ |
|
| 10 | + 'path' => '/var/www/html/apps', |
|
| 11 | + 'url' => '/apps', |
|
| 12 | + 'writable' => false, |
|
| 13 | + ], |
|
| 14 | + [ |
|
| 15 | + 'path' => '/var/www/html/apps-cypress', |
|
| 16 | + 'url' => '/apps-cypress', |
|
| 17 | + 'writable' => true, |
|
| 18 | + ], |
|
| 19 | + ], |
|
| 20 | 20 | ]; |
@@ -7,96 +7,96 @@ discard block |
||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | $expectedFiles = [ |
| 10 | - '.', |
|
| 11 | - '..', |
|
| 12 | - '.devcontainer', |
|
| 13 | - '.editorconfig', |
|
| 14 | - '.envrc', |
|
| 15 | - '.git', |
|
| 16 | - '.git-blame-ignore-revs', |
|
| 17 | - '.gitattributes', |
|
| 18 | - '.github', |
|
| 19 | - '.gitignore', |
|
| 20 | - '.gitmodules', |
|
| 21 | - '.htaccess', |
|
| 22 | - '.idea', |
|
| 23 | - '.jshintrc', |
|
| 24 | - '.mailmap', |
|
| 25 | - '.npmignore', |
|
| 26 | - '.php-cs-fixer.dist.php', |
|
| 27 | - '.pre-commit-config.yaml', |
|
| 28 | - '.tag', |
|
| 29 | - '.tx', |
|
| 30 | - '.user.ini', |
|
| 31 | - '__mocks__', |
|
| 32 | - '__tests__', |
|
| 33 | - '3rdparty', |
|
| 34 | - 'AUTHORS', |
|
| 35 | - 'CHANGELOG.md', |
|
| 36 | - 'CODE_OF_CONDUCT.md', |
|
| 37 | - 'COPYING', |
|
| 38 | - 'COPYING-README', |
|
| 39 | - 'DESIGN.md', |
|
| 40 | - 'Makefile', |
|
| 41 | - 'README.md', |
|
| 42 | - 'REUSE.toml', |
|
| 43 | - 'SECURITY.md', |
|
| 44 | - 'apps', |
|
| 45 | - 'autotest-checkers.sh', |
|
| 46 | - 'autotest-external.sh', |
|
| 47 | - 'autotest.sh', |
|
| 48 | - 'babel.config.js', |
|
| 49 | - 'build', |
|
| 50 | - 'codecov.yml', |
|
| 51 | - 'composer.json', |
|
| 52 | - 'composer.lock', |
|
| 53 | - 'config', |
|
| 54 | - 'console.php', |
|
| 55 | - 'contribute', |
|
| 56 | - 'core', |
|
| 57 | - 'cron.php', |
|
| 58 | - 'custom.d.ts', |
|
| 59 | - 'cypress.config.ts', |
|
| 60 | - 'cypress', |
|
| 61 | - 'dist', |
|
| 62 | - 'eslint.config.mjs', |
|
| 63 | - 'flake.lock', |
|
| 64 | - 'flake.nix', |
|
| 65 | - 'index.html', |
|
| 66 | - 'index.php', |
|
| 67 | - 'lib', |
|
| 68 | - 'LICENSES', |
|
| 69 | - 'occ', |
|
| 70 | - 'ocs', |
|
| 71 | - 'ocs-provider', |
|
| 72 | - 'openapi.json', |
|
| 73 | - 'package-lock.json', |
|
| 74 | - 'package.json', |
|
| 75 | - 'psalm-ncu.xml', |
|
| 76 | - 'psalm-ocp.xml', |
|
| 77 | - 'psalm.xml', |
|
| 78 | - 'public.php', |
|
| 79 | - 'remote.php', |
|
| 80 | - 'resources', |
|
| 81 | - 'robots.txt', |
|
| 82 | - 'status.php', |
|
| 83 | - 'stylelint.config.js', |
|
| 84 | - 'tests', |
|
| 85 | - 'themes', |
|
| 86 | - 'tsconfig.json', |
|
| 87 | - 'vendor-bin', |
|
| 88 | - 'version.php', |
|
| 89 | - 'vitest.config.mts', |
|
| 90 | - 'webpack.common.cjs', |
|
| 91 | - 'webpack.config.js', |
|
| 92 | - 'webpack.modules.cjs', |
|
| 93 | - 'window.d.ts', |
|
| 10 | + '.', |
|
| 11 | + '..', |
|
| 12 | + '.devcontainer', |
|
| 13 | + '.editorconfig', |
|
| 14 | + '.envrc', |
|
| 15 | + '.git', |
|
| 16 | + '.git-blame-ignore-revs', |
|
| 17 | + '.gitattributes', |
|
| 18 | + '.github', |
|
| 19 | + '.gitignore', |
|
| 20 | + '.gitmodules', |
|
| 21 | + '.htaccess', |
|
| 22 | + '.idea', |
|
| 23 | + '.jshintrc', |
|
| 24 | + '.mailmap', |
|
| 25 | + '.npmignore', |
|
| 26 | + '.php-cs-fixer.dist.php', |
|
| 27 | + '.pre-commit-config.yaml', |
|
| 28 | + '.tag', |
|
| 29 | + '.tx', |
|
| 30 | + '.user.ini', |
|
| 31 | + '__mocks__', |
|
| 32 | + '__tests__', |
|
| 33 | + '3rdparty', |
|
| 34 | + 'AUTHORS', |
|
| 35 | + 'CHANGELOG.md', |
|
| 36 | + 'CODE_OF_CONDUCT.md', |
|
| 37 | + 'COPYING', |
|
| 38 | + 'COPYING-README', |
|
| 39 | + 'DESIGN.md', |
|
| 40 | + 'Makefile', |
|
| 41 | + 'README.md', |
|
| 42 | + 'REUSE.toml', |
|
| 43 | + 'SECURITY.md', |
|
| 44 | + 'apps', |
|
| 45 | + 'autotest-checkers.sh', |
|
| 46 | + 'autotest-external.sh', |
|
| 47 | + 'autotest.sh', |
|
| 48 | + 'babel.config.js', |
|
| 49 | + 'build', |
|
| 50 | + 'codecov.yml', |
|
| 51 | + 'composer.json', |
|
| 52 | + 'composer.lock', |
|
| 53 | + 'config', |
|
| 54 | + 'console.php', |
|
| 55 | + 'contribute', |
|
| 56 | + 'core', |
|
| 57 | + 'cron.php', |
|
| 58 | + 'custom.d.ts', |
|
| 59 | + 'cypress.config.ts', |
|
| 60 | + 'cypress', |
|
| 61 | + 'dist', |
|
| 62 | + 'eslint.config.mjs', |
|
| 63 | + 'flake.lock', |
|
| 64 | + 'flake.nix', |
|
| 65 | + 'index.html', |
|
| 66 | + 'index.php', |
|
| 67 | + 'lib', |
|
| 68 | + 'LICENSES', |
|
| 69 | + 'occ', |
|
| 70 | + 'ocs', |
|
| 71 | + 'ocs-provider', |
|
| 72 | + 'openapi.json', |
|
| 73 | + 'package-lock.json', |
|
| 74 | + 'package.json', |
|
| 75 | + 'psalm-ncu.xml', |
|
| 76 | + 'psalm-ocp.xml', |
|
| 77 | + 'psalm.xml', |
|
| 78 | + 'public.php', |
|
| 79 | + 'remote.php', |
|
| 80 | + 'resources', |
|
| 81 | + 'robots.txt', |
|
| 82 | + 'status.php', |
|
| 83 | + 'stylelint.config.js', |
|
| 84 | + 'tests', |
|
| 85 | + 'themes', |
|
| 86 | + 'tsconfig.json', |
|
| 87 | + 'vendor-bin', |
|
| 88 | + 'version.php', |
|
| 89 | + 'vitest.config.mts', |
|
| 90 | + 'webpack.common.cjs', |
|
| 91 | + 'webpack.config.js', |
|
| 92 | + 'webpack.modules.cjs', |
|
| 93 | + 'window.d.ts', |
|
| 94 | 94 | ]; |
| 95 | 95 | $actualFiles = []; |
| 96 | 96 | |
| 97 | 97 | $files = new \DirectoryIterator(__DIR__ . '/..'); |
| 98 | 98 | foreach ($files as $file) { |
| 99 | - $actualFiles[] = $file->getFilename(); |
|
| 99 | + $actualFiles[] = $file->getFilename(); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | $additionalFiles = array_diff($actualFiles, $expectedFiles); |
@@ -104,19 +104,19 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | $failed = false; |
| 106 | 106 | if (count($additionalFiles) > 0) { |
| 107 | - echo sprintf('ERROR: There were %d additional files:', count($additionalFiles)) . PHP_EOL; |
|
| 108 | - echo implode(PHP_EOL, $additionalFiles) . PHP_EOL; |
|
| 109 | - $failed = true; |
|
| 107 | + echo sprintf('ERROR: There were %d additional files:', count($additionalFiles)) . PHP_EOL; |
|
| 108 | + echo implode(PHP_EOL, $additionalFiles) . PHP_EOL; |
|
| 109 | + $failed = true; |
|
| 110 | 110 | } |
| 111 | 111 | if (count($missingFiles) > 0) { |
| 112 | - echo sprintf('ERROR: There were %d missing files:', count($missingFiles)) . PHP_EOL; |
|
| 113 | - echo implode(PHP_EOL, $missingFiles) . PHP_EOL; |
|
| 114 | - $failed = true; |
|
| 112 | + echo sprintf('ERROR: There were %d missing files:', count($missingFiles)) . PHP_EOL; |
|
| 113 | + echo implode(PHP_EOL, $missingFiles) . PHP_EOL; |
|
| 114 | + $failed = true; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | if ($failed) { |
| 118 | - echo 'ERROR: Please remove or add those files again or inform the release team about those now files to be included or excluded from the release tar ball.' . PHP_EOL; |
|
| 119 | - exit(1); |
|
| 118 | + echo 'ERROR: Please remove or add those files again or inform the release team about those now files to be included or excluded from the release tar ball.' . PHP_EOL; |
|
| 119 | + exit(1); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | echo 'OK: all expected files are present and no additional files are there.' . PHP_EOL; |