Skip to content

Instantly share code, notes, and snippets.

@mattfelsen
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save mattfelsen/b50762ed68a9e43f7388 to your computer and use it in GitHub Desktop.

Select an option

Save mattfelsen/b50762ed68a9e43f7388 to your computer and use it in GitHub Desktop.
Local Projects openFrameworks New Project Setup
#!/bin/bash
#
# usage:
# ./setup.sh ProjectName http://server/path/to/new/project/repo.git
#
# add some error-checking to make sure both $1 and $2 are non-empty!
# clone the project & move into the dir
git clone https://github.com/local-projects/OF-Project-Boilerplate.git
mv OF-Project-Boilerplate $1
cd $1
# pull down all submodules
git submodule update --init --recursive
# change origin remote to point at new project repo
git remote origin set-url $2
# rename the README template
mv README.template.md README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment