From 23d4e75690e81d475f42f589d85ee91d4ea3e85b Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Mon, 19 Aug 2019 14:16:57 +0100 Subject: [PATCH 1/2] Create install.sh --- install.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..6f7b12b --- /dev/null +++ b/install.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo The automated installer is currently WIP, please use the Composer global requirement method described on https://github.com/PhpGt/WebEngine/wiki/Installation From 5aa3fa822ecc9874d044be9feffa663dfb42a2b8 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Tue, 24 Sep 2019 19:18:35 +0100 Subject: [PATCH 2/2] Start installer script --- install.sh | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 6f7b12b..811cd84 100644 --- a/install.sh +++ b/install.sh @@ -1,2 +1,40 @@ #!/bin/bash -echo The automated installer is currently WIP, please use the Composer global requirement method described on https://github.com/PhpGt/WebEngine/wiki/Installation +# 1) Check required software available: php, git, composer, docker: +INSTALLED_DOCKER=0 +INSTALLED_COMPOSER=0 +INSTALLED_PHP=0 +INSTALLED_GIT=0 + +if [ "$(command -v docker)" ] +then + INSTALLED_DOCKER=1 +fi + +if [ "$(command -v composer)" ] +then + INSTALLED_COMPOSER=1 +fi + +if [ "$(command -v php)" ] +then + INSTALLED_PHP=1 +fi + +if [ "$(command -v git)" ] +then + INSTALLED_GIT=1 +fi + +if [ ] + +case "$OSTYPE" in + linux*) + ;; + darwin*) + ;; + msys*) + +esac +#Prefer to do everything through docker if available, but give option to user +#Add composer bin directory to PATH if not already +#Global composer install