You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: macos/install.sh
+39-42Lines changed: 39 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
#!/bin/bash
2
-
2
+
set -x
3
3
# Pre-install setup (install version choice, brew install, decompress files, cd into directory, etc.)
4
-
functionsetup {
4
+
functionsetup() {
5
5
# Install All Dependencies
6
6
read -p 'Which PHP version would you like to install?[latest-7.1/latest-7.2/latest-7.3/default: latest-7.4/latest-8.0/latest-master/q (quit)] ' PHPINSTALLVERSION
elif [ "$INSTALLCHOICE"= n ] || [ "$INSTALLCHOICE"= N ];then
155
-
echo cancelling installation
156
-
setup
157
-
else
158
-
echo invalid argument, exiting...
159
-
setup
160
-
fi
161
-
elif [ "$PHPINSTALLVERSION"= latest-master ];then
162
-
read -p 'CAREFUL: This is a pre-release version and is in heavy development. Install this only if you want the latest bleeding-edge features. These may not have been tested thoroughly and should not be used in a production environment. Are you sure you want to install?[y/Y/default: n/N] ' INSTALLCHOICE
163
-
INSTALLCHOICE=${INSTALLCHOICE:-n}
164
-
if [ "$INSTALLCHOICE"= y ] || [ "$INSTALLCHOICE"= Y ];then
165
-
cd ../releases/ ||exit
166
-
git clone https://github.com/php/php-src.git
167
-
cd php-src ||exit
168
-
elif [ "$INSTALLCHOICE"= n ] || [ "$INSTALLCHOICE"= N ];then
154
+
elif [ "$INSTALLCHOICE"= n ] || [ "$INSTALLCHOICE"= N ];then
155
+
echo cancelling installation
156
+
setup
157
+
else
158
+
echo invalid argument, exiting...
159
+
setup
160
+
fi
161
+
elif [ "$PHPINSTALLVERSION"= latest-master ];then
162
+
read -p 'CAREFUL: This is a pre-release version and is in heavy development. Install this only if you want the latest bleeding-edge features. These may not have been tested thoroughly and should not be used in a production environment. Are you sure you want to install?[y/Y/default: n/N] ' INSTALLCHOICE
163
+
INSTALLCHOICE=${INSTALLCHOICE:-n}
164
+
if [ "$INSTALLCHOICE"= y ] || [ "$INSTALLCHOICE"= Y ];then
165
+
cd ../releases/ ||exit
166
+
git clone https://github.com/php/php-src.git
167
+
cd php-src ||exit
168
+
elif [ "$INSTALLCHOICE"= n ] || [ "$INSTALLCHOICE"= N ];then
# Ask the user if the PHP CLI should be installed or not
334
331
read -p 'The tests have been completed and you may or may not have had failures on some of them. This can sometimes be ignored with the latest builds, or may need extra attention. Would you like to continue with installation?[default: y/Y/n/N] ' ERRORRESPONSE
0 commit comments