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:
Tianon Gravi
2015-07-08 09:32:37 -07:00
parent 11f5f37233
commit 0e983d18f2
5 changed files with 11 additions and 15 deletions

View File

@ -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 '