Last active
August 29, 2015 14:08
-
-
Save mattfelsen/b50762ed68a9e43f7388 to your computer and use it in GitHub Desktop.
Revisions
-
mattfelsen revised this gist
Aug 24, 2015 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,11 @@ #!/bin/bash # # NOTE: The openFrameworks folder structure (particularly with regard to the projectGenerator) # has changed since this script was written, so this will probably not work! # (The parts about creating a new project toward the end, at least.) # # # usage: # -
mattfelsen revised this gist
Nov 15, 2014 . 1 changed file with 54 additions and 15 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,21 +2,32 @@ # # usage: # # ./setup.sh <project-name> <git-remote-url> # # examples: # # For a GitHub-hosted project: # ./setup.sh ProjectName https://github.com/local-projects/ProjectName.git # # For an Assembla-hosted project: # ./setup.sh ProjectName [email protected]:project-name.repo-name.git # # TODO # need to do some checking on $1 and $2 to see if they're empty, whether # $1 is a URL and we're already inside the project dir, etc. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # # project folder setup # # create the project folder, move in mkdir $1 cd $1 # make the folder structure mkdir Apps @@ -36,22 +47,50 @@ touch Scripts/stop.command # create stub for readme touch README.md # # git repo setup # # make a repo git init # add origin remote to point at new project repo git remote add origin $2 # # openFrameworks setup # # add as submodule git submodule add https://github.com/local-projects/openFrameworks.git # switch to the stable branch # this corresponds to the latest release cd openFrameworks git checkout stable # add the official OF repo as a remote # so changes can be synced git remote add upstream https://github.com/openframeworks/openFrameworks.git # stage the submodule's commit to the stable branch instead of master cd .. git add openFrameworks # # openFrameworks projectGenerator # # build the projectGenerator cd openFrameworks/apps/devApps/projectGenerator/ xcodebuild # set the projectGenerator OF root to our newly cloned OF repo echo $DIR/$1/openFrameworks > ~/.ofprojectgenerator/config # create the first app for the new project ./bin/emptyExample.app/Contents/MacOS/emptyExample -
mattfelsen revised this gist
Nov 9, 2014 . 1 changed file with 21 additions and 9 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,22 @@ #!/bin/bash # # usage: # ./setup.sh ProjectName http://server/path/to/new/project/repo.git # # do some checking on $1 and $2 to see if they're empty, whether $1 is a # URL and we're already inside the project dir, etc. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # create the project folder, move in, make a git repo mkdir $1 cd $1 git init # change origin remote to point at new project repo git remote add origin $2 # make the folder structure mkdir Apps @@ -28,18 +34,24 @@ touch Scripts/start.command touch Scripts/stop.command # create stub for readme touch README.md # openFrameworks # - add as submodule # - switch to the stable branch # - stage the submodule's commit to the stable branch instead of master git submodule add https://github.com/local-projects/openFrameworks.git cd openFrameworks git checkout stable cd .. git add openFrameworks # openFrameworks projectGenerator # - build the projectGenerator # - set the projectGenerator OF root to our newly cloned OF repo # - create your first app! cd openFrameworks/apps/devApps/projectGenerator/ xcodebuild echo $DIR/$1/openFrameworks > ~/.ofprojectgenerator/config ./bin/emptyExample.app/Contents/MacOS/emptyExample -
mattfelsen revised this gist
Nov 9, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -34,11 +34,12 @@ touch README.md # - add as submodule # - switch to the stable branch # - stage the submodule's commit to the stable branch instead of master git init git submodule add https://github.com/local-projects/openFrameworks.git cd openFrameworks git checkout stable cd .. git add openFrameworks # change origin remote to point at new project repo git remote add origin $2 -
mattfelsen revised this gist
Nov 5, 2014 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,9 +5,10 @@ # ./setup.sh ProjectName http://server/path/to/new/project/repo.git # # do some checking on $1 and $2 to see if they're empty, whether $1 is a # URL and we're already inside the project dir, etc. # create the project folder & move in mkdir $1 cd $1 -
mattfelsen revised this gist
Nov 5, 2014 . 1 changed file with 43 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ #!/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 mkdir $1 cd $1 # make the folder structure mkdir Apps mkdir Configs mkdir Deployment mkdir Deployment/Scripts mkdir Documentation mkdir ExternalAddons mkdir Scripts mkdir Sketches # create stubs for scripts touch build.command touch Scripts/start.command touch Scripts/stop.command # create stub for readme touch README.md # openFrameworks # - add as submodule # - switch to the stable branch # - stage the submodule's commit to the stable branch instead of master git submodule add https://github.com/local-projects/openFrameworks.git cd openFrameworks git checkout stable cd .. git add openFrameworks # change origin remote to point at new project repo git remote set-url origin $2 -
mattfelsen revised this gist
Nov 5, 2014 . 1 changed file with 0 additions and 22 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,22 +0,0 @@ -
mattfelsen revised this gist
Nov 3, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ cd $1 git submodule update --init --recursive # change origin remote to point at new project repo git remote set-url origin $2 # rename the README template mv README.template.md README.md -
mattfelsen revised this gist
Nov 3, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,8 @@ # ./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 -
mattfelsen revised this gist
Nov 3, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ # # usage: # ./setup.sh ProjectName http://server/path/to/new/project/repo.git # # clone the project & move into the dir -
mattfelsen renamed this gist
Nov 3, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,9 @@ #!/bin/bash # # usage: # ./setup ProjectName http://server/path/to/new/project/repo.git # # clone the project & move into the dir git clone https://github.com/local-projects/OF-Project-Boilerplate.git -
mattfelsen revised this gist
Nov 1, 2014 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,18 @@ #!/bin/bash # usage: # ./setup ProjectName http://server/path/to/new/project/repo.git # 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 -
mattfelsen created this gist
Nov 1, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/bin/bash # clone the project & move into the dir git clone https://github.com/local-projects/OF-Project-Boilerplate.git cd OF-Project-Boilerplate # pull down all submodules git submodule update --init --recursive # change origin remote to point at new project repo git remote origin set-url $1 # rename the README template mv README.template.md README.md