summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2018-11-21 22:34:02 +0100
committerJ0WI <J0WI@users.noreply.github.com>2019-03-13 23:56:39 +0100
commita1ed54243dbcf7e9b7ebdb77fc325a9d8ebdb3a5 (patch)
treeac8759140e112278621dd71774230d6f610b49b6 /update.sh
parentcbe0ad1ad2e96912bd220426757d0159ec727b26 (diff)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh44
1 files changed, 40 insertions, 4 deletions
diff --git a/update.sh b/update.sh
index 321c5452..c6051c6f 100755
--- a/update.sh
+++ b/update.sh
@@ -25,11 +25,47 @@ declare -A extras=(
[fpm-alpine]=''
)
+apcu_version="$(
+ git ls-remote --tags https://github.com/krakjoe/apcu.git \
+ | cut -d/ -f3 \
+ | grep -vE -- '-rc|-b' \
+ | sed -E 's/^v//' \
+ | sort -V \
+ | tail -1
+)"
+
+memcached_version="$(
+ git ls-remote --tags https://github.com/php-memcached-dev/php-memcached.git \
+ | cut -d/ -f3 \
+ | grep -vE -- '-rc|-b' \
+ | sed -E 's/^[rv]//' \
+ | sort -V \
+ | tail -1
+)"
+
+redis_version="$(
+ git ls-remote --tags https://github.com/phpredis/phpredis.git \
+ | cut -d/ -f3 \
+ | grep -viE '[a-z]' \
+ | tr -d '^{}' \
+ | sort -V \
+ | tail -1
+)"
+
+imagick_version="$(
+ git ls-remote --tags https://github.com/mkoppanen/imagick.git \
+ | cut -d/ -f3 \
+ | grep -viE '[a-z]' \
+ | tr -d '^{}' \
+ | sort -V \
+ | tail -1
+)"
+
declare -A pecl_versions=(
- [APCu]='5.1.17'
- [memcached]='3.1.3'
- [redis]='4.2.0'
- [imagick]='3.4.3'
+ [APCu]="$apcu_version"
+ [memcached]="$memcached_version"
+ [redis]="$redis_version"
+ [imagick]="$imagick_version"
)
variants=(