diff options
Diffstat (limited to 'of-make-workspace')
-rwxr-xr-x | of-make-workspace | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/of-make-workspace b/of-make-workspace index 0a7a503d3e6f..adf3ffeeb19f 100755 --- a/of-make-workspace +++ b/of-make-workspace @@ -9,13 +9,34 @@ cd $WS cp -R /opt/openFrameworks/addons . -mkdir -p apps/myApps +OFPATH="/opt/openFrameworks/" + +if [ -d "${OFPATH}/projectGenerator-linux64" ]; then + PJ="projectGenerator-linux64" + PLATFORM="linux64" +elif [ -d "${OFPATH}/projectGenerator" ]; then + PJ="projectGenerator" + PLATFORM="linux" +fi + +OFWSPATH=`pwd` -cd apps +cp -R $OFPATH/$PJ . -cp -R /opt/openFrameworks/projectGenerator . +touch $PJ/resources/app/settings.json + +echo -e "{\n\t\"advancedMode\": false,\n\t \ +\"defaultOfPath\": \"$OFWSPATH\",\n\t \ +\"defaultPlatform\": \"$PLATFORM\",\n\t \ +\"defaultRelativeProjectPath\": \"apps/myApps\",\n\t \ +\"showConsole\": false,\n\t \ +\"showDeveloperTools\": false, \n\t \ +\"useDictionaryNameGenerator\": true,\n\t \ +\"verboseOutput\": false\n}" > $PJ/resources/app/settings.json + +mkdir -p apps/myApps -cd myApps +cd apps/myApps ln -s /opt/openFrameworks/apps/myApps/emptyExample @@ -29,6 +50,5 @@ ln -s /opt/openFrameworks/INSTALL.md cp -R /opt/openFrameworks/libs . ln -s /opt/openFrameworks/LICENSE.md ln -s /opt/openFrameworks/other -cp -R /opt/openFrameworks/projectGenerator . ln -s /opt/openFrameworks/README.md ln -s /opt/openFrameworks/scripts |