mirror of
https://github.com/docker-library/php.git
synced 2025-08-20 13:53:47 +00:00
Swap update.sh to still generate for unknown versions and bump to 7.0.0beta1
Also, update generate-stackbrew-library.sh appropriately.
This commit is contained in:
19
update.sh
19
update.sh
@ -10,8 +10,7 @@ gpgKeys=(
|
||||
[5.3]='0B96609E270F565C13292B24C13C70B87267B52D 0A95E9A026542D53835E3F3A7DEC4E69FC9C83D7'
|
||||
)
|
||||
# see http://php.net/downloads.php
|
||||
alphaVersion="7.0"
|
||||
fullAlphaVersion="7.0.0alpha2"
|
||||
|
||||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
|
||||
versions=( "$@" )
|
||||
@ -32,15 +31,6 @@ for version in "${versions[@]}"; do
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ -z "$fullVersion" ]; then
|
||||
echo >&2 "ERROR: missing $version in $packagesUrl"
|
||||
# if version is alpha then we add the missing part
|
||||
if [ "$alphaVersion" == "$version" ]; then
|
||||
fullVersion="$fullAlphaVersion"
|
||||
else
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
gpgKey="${gpgKeys[$version]}"
|
||||
if [ -z "$gpgKey" ]; then
|
||||
@ -48,7 +38,7 @@ for version in "${versions[@]}"; do
|
||||
echo >&2 " try looking on http://php.net/downloads.php#gpg-$version"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
( set -x; cp docker-php-ext-* "$version/" )
|
||||
|
||||
for variant in apache fpm; do
|
||||
@ -63,6 +53,11 @@ for version in "${versions[@]}"; do
|
||||
( set -x; cp docker-php-ext-* "$version/$variant/" )
|
||||
done
|
||||
|
||||
if [ -z "$fullVersion" ]; then
|
||||
echo >&2 "ERROR: missing $version in $packagesUrl"
|
||||
continue
|
||||
fi
|
||||
|
||||
(
|
||||
set -x
|
||||
sed -ri '
|
||||
|
Reference in New Issue
Block a user