Skip to content

Instantly share code, notes, and snippets.

@m4rc1e
Last active September 11, 2018 13:34
Show Gist options
  • Save m4rc1e/c271847fd23c3778aeaab72038f14076 to your computer and use it in GitHub Desktop.
Save m4rc1e/c271847fd23c3778aeaab72038f14076 to your computer and use it in GitHub Desktop.
WIP: Shell script to install Fontbakery from stock OSX install
set -e
# Install homebrew
if ! [ -x "$(command -v brew)" ]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "Homebrew already installed! skipping."
fi
# Install python3
if ! [ -x "$(command -v python3)" ]; then
brew install python3
brew link python3
pip3 install virtualenv
else
echo "Python already installed! skipping."
fi
# Clone FB
git clone https://github.com/googlefonts/fontbakery
cd fontbakery
# Create virtualenv in current dir
virtualenv venv --python=python3
source venv/bin/activate
pip install -e .
pip install -r requirements.txt
echo "Boom done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment