summarylogtreecommitdiffstats
path: root/of-make-workspace
diff options
context:
space:
mode:
authorMarco Pompili2015-11-16 16:31:33 +0100
committerMarco Pompili2015-11-25 13:54:47 +0100
commitf59458c58566abfdfccc261a205523477869c87e (patch)
tree336720d2f56b216517ce7a45666ab3be278f7a27 /of-make-workspace
parent787eef622b3a1ec5fe7e12eb06e5b6c5b4eab9bf (diff)
downloadaur-f59458c58566abfdfccc261a205523477869c87e.tar.gz
Version 0.9.0
Diffstat (limited to 'of-make-workspace')
-rwxr-xr-xof-make-workspace30
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