Last active
December 31, 2015 02:09
-
-
Save elken/7919269 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ========================================= Dependencies: libraries and binaries | |
| # RVM requirements. See: | |
| # https://github.com/wayneeseguin/rvm/blob/master/scripts/requirements | |
| for package in gcc gcc-multilib make glibc openssl readline curl git zlib libyaml sqlite libxml2 libxslt autoconf ncurses automake libtool; do | |
| echo -n "Searching for: $package..." | |
| if ( pacman -Q $package >/dev/null ); then | |
| echo -e " \e[32;40mfound\e[0m" | |
| else | |
| CHECK_PASSED=0 | |
| PACKAGE_LIST=("${PACKAGE_LIST[@]} $package") | |
| fi | |
| done | |
| # Do we have all the binaries and libraries? | |
| if [[ $CHECK_PASSED -eq 0 ]]; then | |
| echo -e "\n\n\e[31mSome required packages were missing, please try installing them with: \e[0m" | |
| echo -e " pacman -Syy ${PACKAGE_LIST[@]}" | |
| exit 1 | |
| fi | |
| # ========================================================================= RVM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment