#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" PREVIOUS_DIR=$(pwd) cd $DIR project=$(basename $DIR) rm -rf bin/$project* rm -rf bin/data/ofxMsdfgen rm -rf bin/data/ofxGPUFont cp -r ../../../addons/ofxMsdfgen/data/ofxMsdfgen ./bin/data/ cp -r ../../../addons/ofxGPUFont/data/ofxGPUFont ./bin/data/ cd $PREVIOUS_DIR