Add some comments.

This commit is contained in:
Scott Wallace 2016-01-28 18:40:42 +00:00
parent 2f282fe51f
commit 1e64400df2

View file

@ -1,14 +1,25 @@
#!/bin/bash #!/bin/bash
#-------------------------------
# Check OS
#-------------------------------
if [ $(uname -s) != "Darwin" ]; then if [ $(uname -s) != "Darwin" ]; then
echo "This should only run on Mac OS X." echo "This should only run on Mac OS X."
exit 1 exit 1
fi fi
#-------------------------------
#-------------------------------
# Install Homebrew if missing
#-------------------------------
if [ ! -x /usr/local/bin/brew ]; then if [ ! -x /usr/local/bin/brew ]; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi fi
#-------------------------------
#-------------------------------
# Install the basics
#-------------------------------
xargs brew install <<EOF xargs brew install <<EOF
git git
coreutils coreutils
@ -16,7 +27,11 @@ xargs brew install <<EOF
python3 python3
vim vim
EOF EOF
#-------------------------------
#-------------------------------
# Install Casks
#-------------------------------
xargs brew cask install <<EOF xargs brew cask install <<EOF
alfred alfred
bbc-iplayer-downloads bbc-iplayer-downloads
@ -44,3 +59,4 @@ xargs brew cask install <<EOF
yubikey-neo-manager yubikey-neo-manager
yubikey-personalization-gui yubikey-personalization-gui
EOF EOF
#-------------------------------