Last active
February 16, 2019 19:08
-
-
Save PARC6502/c8f596ad7efd84d0e02b60075a4c8185 to your computer and use it in GitHub Desktop.
Copies over an empty p5 file
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
#A script to initialise a p5 folder | |
SOURCEDIR="~\p5templates\empty-example" | |
getopts 'g' flag; | |
if [[ "${flag}" == "g" ]]; then | |
SOURCEDIR="~\p5templates\generative-library" | |
fi | |
# I guess this line removes the g flag for cp... | |
shift $(($OPTIND - 1)) | |
cp -r "${SOURCEDIR}" ${1:-new_sketch} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment