blob: 90235223edcbf96e6271c4dd411b6d28b6583474 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
. ${GRIMOIRE}/FUNCTIONS &&
# PHP5 -> PHP
if spell_ok $SPELL && [[ -n $PHP5_BRANCH ]]; then
persistent_add PHP_BRANCH &&
PHP_BRANCH="$PHP5_BRANCH" &&
persistent_remove PHP5_BRANCH &&
# backporting legacy branch selection
if [[ $PHP_BRANCH == alpha ]] || [[ $PHP_BRANCH == rc ]]; then
PHP_BRANCH="stable"
fi &&
# keep 5.4 branch selection
if [[ $(installed_version $SPELL | cut -d. -f1,2) == "5.4" ]]; then
PHP_BRANCH="legacy"
fi
fi &&
prepare_select_branch stable \
previous \
legacy
|