forked from gjtorikian/mathematical
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·34 lines (27 loc) · 972 Bytes
/
bootstrap
File metadata and controls
executable file
·34 lines (27 loc) · 972 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
32
33
34
#!/bin/bash
set -e
export CC=gcc
echo "==> Initing Git submodules"
git submodule update --init --recursive
echo "==> Installing gem dependencies…"
bundle install --local --binstubs --path vendor/cache "$@"
echo "==> Installing required libraries…"
if [ "$(uname)" == "Darwin" ]; then
for pkg in glib gdk-pixbuf cairo pango cmake; do
if brew list -1 | grep -q "^${pkg}\$"; then
echo "Package '$pkg' is installed"
else
echo "Package '$pkg' is not installed"
brew install $pkg
fi
done
echo "I'm going to run brew link gettext --force"
echo "If this concerns you, run brew unlink gettext after installing the gem"
brew link gettext --force
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then
echo 'nothing to do!'
else
sudo apt-get -qq -y install bison flex libffi-dev libxml2-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev ttf-lyx
fi
fi