diff options
| author | TitanSnow <[email protected]> | 2017-05-26 09:46:36 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-26 09:46:36 +0800 |
| commit | fd89ef0415b9a1d26cd9649fd242db51c6893da5 (patch) | |
| tree | adede49ea1eb4c864f0c507b61b7ebd9d373ef24 /scripts | |
| parent | 05f5bbbb1b9b41616e4c087b669cb753bbe39bcc (diff) | |
optionally install ccache
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/get.sh b/scripts/get.sh index 2a462d5ad..9c01b2526 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -53,12 +53,12 @@ test_tools() } install_tools() { - { apt-get --version >/dev/null 2>&1 && $sudoprefix apt-get install -y git build-essential libreadline-dev; } || - { yum --version >/dev/null 2>&1 && $sudoprefix yum install -y git readline-devel && $sudoprefix yum groupinstall -y 'Development Tools'; } || - { zypper --version >/dev/null 2>&1 && $sudoprefix zypper --non-interactive install git readline-devel && $sudoprefix zypper --non-interactive install -t pattern devel_C_C++; } || - { pacman -V >/dev/null 2>&1 && $sudoprefix pacman -S --noconfirm --needed git base-devel; } + { apt-get --version >/dev/null 2>&1 && $sudoprefix apt-get install -y git build-essential libreadline-dev ccache; } || + { yum --version >/dev/null 2>&1 && $sudoprefix yum install -y git readline-devel ccache && $sudoprefix yum groupinstall -y 'Development Tools'; } || + { zypper --version >/dev/null 2>&1 && $sudoprefix zypper --non-interactive install git readline-devel ccache && $sudoprefix zypper --non-interactive install -t pattern devel_C_C++; } || + { pacman -V >/dev/null 2>&1 && $sudoprefix pacman -S --noconfirm --needed git base-devel ccache; } } -test_tools || { install_tools && test_tools; } || my_exit "$(echo -e 'Dependencies Installation Fail\nThe getter currently only support these package managers\n\t* apt\n\t* yum\n\t* zypper\n\t* pacman\nPlease install following dependencies manually:\n\t* git\n\t* build essential like `make`, `gcc`, etc\n\t* libreadline-dev (readline-devel)')" 1 +test_tools || { install_tools && test_tools; } || my_exit "$(echo -e 'Dependencies Installation Fail\nThe getter currently only support these package managers\n\t* apt\n\t* yum\n\t* zypper\n\t* pacman\nPlease install following dependencies manually:\n\t* git\n\t* build essential like `make`, `gcc`, etc\n\t* libreadline-dev (readline-devel)\n\t* ccache (optional)')" 1 branch=master mirror=tboox IFS=':' |
