Last active
September 11, 2018 13:34
-
-
Save m4rc1e/c271847fd23c3778aeaab72038f14076 to your computer and use it in GitHub Desktop.
WIP: Shell script to install Fontbakery from stock OSX install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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