Merge branch 'QA_5_1'

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-02-24 10:18:05 +01:00
commit d4cc4164b9
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
3 changed files with 10 additions and 3 deletions

View File

@ -240,6 +240,7 @@ ensure_local_branch $branch
VERSION_FILE=libraries/classes/Version.php
# Keep in sync with update-po script
fetchReleaseFromFile() {
php -r "define('VERSION_SUFFIX', ''); require_once('libraries/classes/Version.php'); echo \PhpMyAdmin\Version::VERSION;"
}

View File

@ -57,7 +57,7 @@ echo "Changing from ${oldVersion} to ${newVersion}..."
oldVersion=${oldVersion//./\.}
newVersion=${newVersion//./\.}
for f in README doc/conf.py libraries/classes/Config.php package.json
for f in README doc/conf.py package.json
do
if ! grep --quiet "${oldVersion}" "${dir}${f}"
then
@ -71,4 +71,5 @@ done
echo
echo "Next, you need to manually edit ChangeLog to manually change the version number and set the release date, and verify the changes with 'git diff'."
echo "Suggested commit message: Prepare for version ${newVersion}"
echo "You will probably want to call: \"./scripts/console set-version ${newVersion}\" afterwards"
echo "Suggested commit message: Prepare for version ${newVersion}"

View File

@ -43,7 +43,12 @@ php scripts/fix-po-twig
# Remote twig templates
rm -rf twig-templates/
ver=`sed -n "/PMA_VERSION', '/ s/.*PMA_VERSION', '\(.*\)'.*/\1/p" libraries/classes/Config.php`
# Keep in sync with create-release.sh
fetchReleaseFromFile() {
php -r "define('VERSION_SUFFIX', ''); require_once('libraries/classes/Version.php'); echo \PhpMyAdmin\Version::VERSION;"
}
ver="$(fetchReleaseFromFile)"
sed -i.~ '
s/SOME DESCRIPTIVE TITLE/phpMyAdmin translation/;