forked from thoughtbot/laptop
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use preferred POSIX `command -v` test for command existence instead of previous `which` technique. `which` exits with status `1` if nothing is found. That would cause the script to abort because we use `set -e`. http://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script Remove GCC dependency in mac script GCC is no longer necessary to compile Ruby. It was fixed in Ruby about two years ago. LLVM has been supported since 1.9.3-p125. https://bugs.ruby-lang.org/issues/5076 http://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues
- Loading branch information
Dan Croak
committed
Apr 14, 2014
1 parent
e8ad3a3
commit f0acd78
Showing
4 changed files
with
16 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
fancy_echo "Installing GNU Compiler Collection, a necessary prerequisite to installing Ruby ..." | ||
brew tap homebrew/dupes | ||
brew install apple-gcc42 | ||
|
||
fancy_echo "Upgrading and linking OpenSSL ..." | ||
brew install openssl | ||
brew link openssl --force | ||
brew install curl-ca-bundle | ||
|
||
export CC=gcc-4.2 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
fancy_echo "Installing rcm, to manage your dotfiles ..." | ||
brew tap thoughtbot/formulae | ||
brew install rcm | ||
if ! command -v rcup &>/dev/null; then | ||
fancy_echo "Installing rcm, to manage your dotfiles ..." | ||
brew tap thoughtbot/formulae | ||
brew install rcm | ||
else | ||
fancy_echo "rcm already installed. Skipping ..." | ||
fi |