Skip to content

Instantly share code, notes, and snippets.

@PARC6502
Last active February 16, 2019 19:08
Show Gist options
  • Save PARC6502/c8f596ad7efd84d0e02b60075a4c8185 to your computer and use it in GitHub Desktop.
Save PARC6502/c8f596ad7efd84d0e02b60075a4c8185 to your computer and use it in GitHub Desktop.
Copies over an empty p5 file
#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