#!/bin/bash if [ ! -f "./Fork-Awesome/.git" ]; then echo -e "\x1b[31;1mFA submodule is not initialized, exit...\x1b[m" exit fi if [ ! -f "./wanted.ini" ]; then echo -e "\x1b[31;1mMissing customization file './wanted.ini'!\x1b[m" exit fi if [ ! -d "./Fork-Awesome/.bundle" ]; then echo -e "\x1b[31;1mGems not installed in the FA submodule, cannot build. Did you run install.sh?\x1b[m" exit fi if [ ! -d "./Fork-Awesome/node_modules" ]; then echo -e "\x1b[31;1mNode modules not installed in the FA submodule, cannot build. Did you run install.sh?\x1b[m" exit fi bash ./refresh-templates.sh echo "=== Starting a build... ===" (cd patcher && node ./apply-filter.js) (cd "./Fork-Awesome/src/icons/" && make) cp ./Fork-Awesome/src/icons/forkawesome/* ./output echo "=== Your font is ready in the output/ directory ==="