Compare commits

...

21 Commits

Author SHA1 Message Date
32532147e8 Minor cleanup 2023-05-29 19:07:23 +02:00
2fd033a8c5 removed debug stuff 2023-05-29 19:01:16 +02:00
a1b030e463 Fixes for language files7. 2023-05-29 16:18:23 +02:00
21fb878ffb Fixes for language files6. 2023-05-29 16:17:12 +02:00
2114bcc8b5 Fixes for language files5. 2023-05-29 16:14:05 +02:00
7d88fc5066 Fixes for language files4. 2023-05-29 16:12:03 +02:00
08a53a737f Fixes for language files3. 2023-05-29 16:07:40 +02:00
46e90bd798 Fixes for language files2. 2023-05-29 15:53:23 +02:00
c8b88021ed Fixes for language files1. 2023-05-29 15:50:59 +02:00
dabe69967d Fixes for language files. 2023-05-29 15:49:01 +02:00
154bd410a4 added more flibiliy for versions, added dry-run option 2023-05-29 15:26:11 +02:00
7e85faf2f2 added more flibiliy for versions, added dry-run option 2023-05-29 15:07:19 +02:00
21e577b2ca Added the changes regarding shebang and php version to the README.md 2022-08-30 14:20:52 +02:00
04ae283e13 Changed shebang to be more generic, a KeyHelp environment needs an explicit call with keyhelp-php81 2022-08-30 14:18:58 +02:00
9f31cf0304 Changed shebang to be more generic, a KeyHelp environment needs an explicit call with keyhelp-php81 2022-08-30 14:18:36 +02:00
e3a9fb1454 Lowered required version to php 8.0 2022-08-30 14:16:33 +02:00
b99438c925 Lowered required version to php 8.0 2022-08-30 14:16:25 +02:00
ab55fd9abb Fixed a bug when the language file is not yet available. 2022-07-02 12:56:19 +02:00
ff93b288c2 added composer part to README.md 2022-06-15 13:38:01 +02:00
8ea6328f43 initial commit 2022-03-30 14:07:42 +02:00
fd1ef5153a initial commit 2022-03-30 14:07:31 +02:00
5 changed files with 826 additions and 493 deletions

File diff suppressed because it is too large Load Diff

@ -1,3 +1,35 @@
# phpbb_updates
Shell Script to update phpBB to current version.
Shell Script to update phpBB to current version.
Usage:
Switch into your current phpBB root directory, then
`git clone https://git.24unix.net/tracer/phpbb_updates.git`
Or download either:
https://git.24unix.net/tracer/phpbb_updates/archive/v0.0.1.zip
or:
https://git.24unix.net/tracer/phpbb_updates/archive/v0.0.1.tar.gz
and unpack them into the same directory and change into phpbb_updates.
Then: Install composer (https://getcomposer.org/download/) and run
`composer install`
followed by:
`php update.php` or `/update.php`
If you are using KeyHelp, replace
`composer install` with `keyhelp-php81 composer install`
and
`php update.php` with `keyhelp-php81 update.php`

21
composer.json Normal file

@ -0,0 +1,21 @@
{
"name": "tracer/phpbb_updates",
"authors": [
{
"name": "Micha Espey",
"email": "tracer@24unix.net"
}
],
"require": {
"php-school/cli-menu": "^4.3",
"ext-posix": "*",
"ext-pdo": "*"
},
"autoload": {
"psr-4": {
"App\\": "Controller/"
}
}
}

207
composer.lock generated Normal file

@ -0,0 +1,207 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "ea334e217cccb22191ad5b9d31c65f64",
"packages": [
{
"name": "beberlei/assert",
"version": "v3.3.2",
"source": {
"type": "git",
"url": "https://github.com/beberlei/assert.git",
"reference": "cb70015c04be1baee6f5f5c953703347c0ac1655"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/beberlei/assert/zipball/cb70015c04be1baee6f5f5c953703347c0ac1655",
"reference": "cb70015c04be1baee6f5f5c953703347c0ac1655",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-simplexml": "*",
"php": "^7.0 || ^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "*",
"phpstan/phpstan": "*",
"phpunit/phpunit": ">=6.0.0",
"yoast/phpunit-polyfills": "^0.1.0"
},
"suggest": {
"ext-intl": "Needed to allow Assertion::count(), Assertion::isCountable(), Assertion::minCount(), and Assertion::maxCount() to operate on ResourceBundles"
},
"type": "library",
"autoload": {
"files": [
"lib/Assert/functions.php"
],
"psr-4": {
"Assert\\": "lib/Assert"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de",
"role": "Lead Developer"
},
{
"name": "Richard Quadling",
"email": "rquadling@gmail.com",
"role": "Collaborator"
}
],
"description": "Thin assertion library for input validation in business models.",
"keywords": [
"assert",
"assertion",
"validation"
],
"support": {
"issues": "https://github.com/beberlei/assert/issues",
"source": "https://github.com/beberlei/assert/tree/v3.3.2"
},
"time": "2021-12-16T21:41:27+00:00"
},
{
"name": "php-school/cli-menu",
"version": "4.3.0",
"source": {
"type": "git",
"url": "https://github.com/php-school/cli-menu.git",
"reference": "bad5e0177f2b3ada6dc14eee4011fee4001b7679"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-school/cli-menu/zipball/bad5e0177f2b3ada6dc14eee4011fee4001b7679",
"reference": "bad5e0177f2b3ada6dc14eee4011fee4001b7679",
"shasum": ""
},
"require": {
"beberlei/assert": "^2.4 | ^3",
"ext-mbstring": "*",
"ext-posix": "*",
"php": ">=7.1",
"php-school/terminal": "^0.2.1"
},
"require-dev": {
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^8.0 | ^9.0",
"squizlabs/php_codesniffer": "^3.2"
},
"type": "library",
"autoload": {
"files": [
"src/Util/ArrayUtils.php"
],
"psr-4": {
"PhpSchool\\CliMenu\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Woodward",
"email": "mikeymike.mw@gmail.com"
},
{
"name": "Aydin Hassan",
"email": "aydin@hotmail.com"
}
],
"description": "A command line menu helper in PHP",
"keywords": [
"cli",
"console",
"menu",
"php-school",
"phpschool",
"terminal"
],
"support": {
"issues": "https://github.com/php-school/cli-menu/issues",
"source": "https://github.com/php-school/cli-menu/tree/4.3.0"
},
"time": "2021-12-16T09:40:06+00:00"
},
{
"name": "php-school/terminal",
"version": "0.2.1",
"source": {
"type": "git",
"url": "https://github.com/php-school/terminal.git",
"reference": "725f86c7db996a4cf65648022f17e22391e97320"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-school/terminal/zipball/725f86c7db996a4cf65648022f17e22391e97320",
"reference": "725f86c7db996a4cf65648022f17e22391e97320",
"shasum": ""
},
"require": {
"ext-posix": "*",
"php": ">=7.1"
},
"require-dev": {
"phpstan/phpstan": "^0.9.2",
"phpunit/phpunit": "^7.1",
"squizlabs/php_codesniffer": "^3.2"
},
"type": "library",
"autoload": {
"psr-4": {
"PhpSchool\\Terminal\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Woodward",
"email": "mikeymike.mw@gmail.com"
},
{
"name": "Aydin Hassan",
"email": "aydin@hotmail.com"
}
],
"description": "A command line terminal utility in PHP",
"keywords": [
"cli",
"console",
"php-school",
"phpschool",
"terminal"
],
"support": {
"issues": "https://github.com/php-school/terminal/issues",
"source": "https://github.com/php-school/terminal/tree/0.2.1"
},
"time": "2019-12-17T21:56:06+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.2.0"
}

@ -1,9 +1,21 @@
#!/usr/bin/keyhelp-php81 -d apc.enable_cli=1
#!/usr/bin/env php
<?php
use App\UpdateController;
require __DIR__ . '/vendor/autoload.php';
$update = new UpdateController();
$options = $update->parseOpts();
// Help option
if (array_key_exists(key: 'h', array: $options) || array_key_exists(key: 'help', array: $options)) {
$update->printHelp();
exit(0);
}
if (array_key_exists(key: 'd', array: $options) || array_key_exists(key: 'dry-run', array: $options)) {
$update->setDryRun();
}
$update->handleUpdate();