fixed version numbers syntaxes

This commit is contained in:
Simon Wisselink
2023-08-08 00:16:25 +02:00
parent 949f3185c4
commit 362104ef9f
2 changed files with 5 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ lexers: src/Lexer/ConfigfileLexer.php src/Lexer/TemplateLexer.php
parsers: src/Parser/ConfigfileParser.php src/Parser/TemplateParser.php
docs:
mike deploy 5.0
mike deploy 5.x
test-docs:
mkdocs serve

View File

@@ -1,12 +1,15 @@
#!/bin/bash
if [[ "$1" =~ ^5\.[0-9\.-rc]+$ ]]; then
if [[ "$1" =~ ^5\.[0-9\.]+(-rc[0-9]+)?$ ]]; then
printf 'Creating release %s\n' "$1"
else
echo "Invalid version number: $1. This script can only make v5.x.x releases."
exit 1;
fi
## DEBUG
exit 1;
git checkout -b "release/$1"
sed -i "s/## \\[Unreleased\\]/## \\[Unreleased\\]\\n\\n## \\[$1\\] - $(date +%Y-%m-%d)/" CHANGELOG.md
sed -i "s/const SMARTY_VERSION = '[^']\+';/const SMARTY_VERSION = '$1';/" libs/Smarty.class.php