forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrew.sh
executable file
·40 lines (27 loc) · 819 Bytes
/
brew.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
# Make sure we’re using the latest Homebrew.
echo "Updating brew."
#brew update
# Upgrade any already-installed f||mulae.
echo "Uprading brew."
#brew upgrade
# Tap brew repositories
echo "Tapping Brew repositories."
cat brew-taps | sed -e '/^$/d' -e '/^#/d' | while read t;do
#for t in `sed -e '/^$/d' -e '/^#/d' brew-taps`; do
echo "Tapping: $t"
brew tap $t
done
# Install Brew packages
echo "Installing Brew packages."
cat brew-packages | sed -e '/^$/d' -e '/^#/d' | while read p; do
echo "Installing: $p."
brew install $p
done
# Install Cask packages
echo "Installing Brew Cask packages."
cat brew-cask-packages | sed -e '/^$/d' -e '/^#/d' | while read p; do
echo "Installing Brew Cask package: $p."
brew cask install $p
done
echo "That's all folk's."