mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 17:34:26 +02:00
fixed version numbers syntaxes
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user