diff options
author | Marco Pompili | 2015-11-16 16:31:33 +0100 |
---|---|---|
committer | Marco Pompili | 2015-11-25 13:54:47 +0100 |
commit | f59458c58566abfdfccc261a205523477869c87e (patch) | |
tree | 336720d2f56b216517ce7a45666ab3be278f7a27 /of-make-workspace | |
parent | 787eef622b3a1ec5fe7e12eb06e5b6c5b4eab9bf (diff) | |
download | aur-f59458c58566abfdfccc261a205523477869c87e.tar.gz |
Version 0.9.0
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 |