forked from pyside/BuildScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdependencies.osx.sh
More file actions
executable file
·32 lines (26 loc) · 839 Bytes
/
dependencies.osx.sh
File metadata and controls
executable file
·32 lines (26 loc) · 839 Bytes
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
#!/bin/sh
# Install build dependencies for Mac OS X using Homebrew
# Get Homebrew from http://mxcl.github.com/homebrew/
if [ "`which brew`" == "" ]; then
cat <<EOF
The command "brew" was not found on your system. This
script assumes that you have Homebrew installed. Would
you like to open the Homebrew Installation page in your
browser now?
EOF
/bin/echo -n "(Y/n) "
read yn
if [ "$yn" == "" -o "$yn" == "y" -o "$yn" == "Y" ]; then
url='https://github.com/mxcl/homebrew/wiki/installation'
echo "Opening $url..."
open "$url"
fi
echo "Please restart this script after installing Homebrew."
exit 1
fi
echo "Updating homebrew cache..."
brew update
for dependency in cmake libxml2; do
echo "Installing/upgrading dependency: $dependency"
brew install $dependency || brew upgrade $dependency
done