Skip to content

Commit

Permalink
Adjustments for OS X but doesn't quite work...
Browse files Browse the repository at this point in the history
  • Loading branch information
solidsnack committed Apr 11, 2013
1 parent 35dce82 commit fd31456
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions bin/ubuntu-one-step.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -o errexit -o nounset -o pipefail
function -h {
cat <<USAGE
USAGE: one-shot.bash
one-shot.bash os_x|ubuntu|...
USAGE: one-step.bash
one-step.bash os_x|ubuntu|...
Installs Chronos in one step. With no arguments, auto detects your OS and
performs appropriate installation.
Expand All @@ -30,8 +30,11 @@ function main {

function os_x {(
tmp
# Check for g++, autoconf, Java, Homebrew. Error if not found.
# Install Maven.
for cmd in g++ gcc java brew
do
which "$cmd" &>/dev/null || err "Please install: $cmd"
done
#task_wrapper brew install maven
mesos
chronos
)}
Expand Down Expand Up @@ -106,7 +109,7 @@ function github_tgz {

function tgz_into {
mkdir -p "$1"
tar -xz -C "$1" -k --strip-components 1 # Yes, this is portable.
tar -xz -C "$1" --strip-components 1 # Yes, this is portable.
}

declare hasher
Expand Down

0 comments on commit fd31456

Please sign in to comment.