Last active
August 29, 2015 14:08
-
-
Save mattfelsen/b50762ed68a9e43f7388 to your computer and use it in GitHub Desktop.
Local Projects openFrameworks New Project Setup
This file contains hidden or 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
| #!/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