Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2018-04-18 16:43:12 +0300
committerMichal Čihař <michal@cihar.com>2018-04-18 16:43:12 +0300
commit66e4c3de687b95505d797a8436ca8b98c9e133e4 (patch)
tree1c53a3ca1b2d239119a811eee634dec4f39eec46 /scripts
parent3c85d747b4180fa69a079d6f36178ee22f9ed095 (diff)
Make create-release script compatible with QA_4_8
The version in master is supposed to handle all supported branches. See https://github.com/phpmyadmin/docker/issues/157 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-release.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/create-release.sh b/scripts/create-release.sh
index 4d87dd4044..8bcfc74d99 100755
--- a/scripts/create-release.sh
+++ b/scripts/create-release.sh
@@ -222,7 +222,8 @@ rm -f .travis.yml .coveralls.yml .scrutinizer.yml .jshintrc .weblate codecov.yml
rm -f README.rst
if [ ! -d libraries/tcpdf ] ; then
- PHP_REQ=`sed -n '/"php"/ s/.*"\^\([0-9]\.[0-9]\).*/\1/p' composer.json`
+ PHP_REQ=`sed -n '/"php"/ s/.*"(\^|>=)\([0-9]\.[0-9]\).*/\2/p' composer.json`
+
if [ -z "$PHP_REQ" ] ; then
echo "Failed to figure out required PHP version from composer.json"
exit 2