|
|
@ -25,34 +25,45 @@ until [[ $INSTALL_SYSTEM_DEPENDENCIES =~ (y|n) ]]; do |
|
|
|
read -rp "Install system dependencies? [y/n]: " -e INSTALL_SYSTEM_DEPENDENCIES |
|
|
|
read -rp "Install system dependencies? [y/n]: " -e INSTALL_SYSTEM_DEPENDENCIES |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
## @TODO check for package manager support |
|
|
|
## Dependencies installation requested |
|
|
|
if [[ $INSTALL_SYSTEM_DEPENDENCIES == "y" ]]; then |
|
|
|
if [[ $INSTALL_SYSTEM_DEPENDENCIES == "y" ]]; then |
|
|
|
sudo apt install libpq-dev\ |
|
|
|
|
|
|
|
bison\ |
|
|
|
### Detect package manager |
|
|
|
libreadline-dev\ |
|
|
|
if [[ ! -z $(which apt) ]]; then |
|
|
|
git\ |
|
|
|
CMD_INSTALL="apt install" |
|
|
|
composer\ |
|
|
|
elif [[ ! -z $(which yum) ]]; then |
|
|
|
build-essential\ |
|
|
|
CMD_INSTALL="yum install" |
|
|
|
autoconf\ |
|
|
|
else |
|
|
|
automake\ |
|
|
|
echo "Package manager not supported!" && exit |
|
|
|
libtool\ |
|
|
|
fi |
|
|
|
re2c\ |
|
|
|
|
|
|
|
libxml2-dev\ |
|
|
|
### Install dependencies |
|
|
|
libcurl4-openssl-dev\ |
|
|
|
sudo $CMD_INSTALL libpq-dev\ |
|
|
|
libssl-dev\ |
|
|
|
bison\ |
|
|
|
libbz2-dev\ |
|
|
|
libreadline-dev\ |
|
|
|
libjpeg-dev\ |
|
|
|
git\ |
|
|
|
libpng-dev\ |
|
|
|
composer\ |
|
|
|
libxpm-dev\ |
|
|
|
build-essential\ |
|
|
|
libfreetype6-dev\ |
|
|
|
autoconf\ |
|
|
|
libzip-dev\ |
|
|
|
automake\ |
|
|
|
libsqlite3-dev\ |
|
|
|
libtool\ |
|
|
|
libonig-dev\ |
|
|
|
re2c\ |
|
|
|
libxslt1-dev\ |
|
|
|
libxml2-dev\ |
|
|
|
libgtk-3-dev\ |
|
|
|
libcurl4-openssl-dev\ |
|
|
|
libgladeui-dev\ |
|
|
|
libssl-dev\ |
|
|
|
libgtksourceview-3.0-dev\ |
|
|
|
libbz2-dev\ |
|
|
|
libwnck-dev |
|
|
|
libjpeg-dev\ |
|
|
|
|
|
|
|
libpng-dev\ |
|
|
|
|
|
|
|
libxpm-dev\ |
|
|
|
|
|
|
|
libfreetype6-dev\ |
|
|
|
|
|
|
|
libzip-dev\ |
|
|
|
|
|
|
|
libsqlite3-dev\ |
|
|
|
|
|
|
|
libonig-dev\ |
|
|
|
|
|
|
|
libxslt1-dev\ |
|
|
|
|
|
|
|
libgtk-3-dev\ |
|
|
|
|
|
|
|
libgladeui-dev\ |
|
|
|
|
|
|
|
libgtksourceview-3.0-dev\ |
|
|
|
|
|
|
|
libwnck-dev |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Install composer dependencies |
|
|
|
# Install composer dependencies |
|
|
|