summarylogtreecommitdiffstats
path: root/of-make-workspace
diff options
context:
space:
mode:
authorMarco Pompili2016-08-10 18:30:11 +0200
committerMarco Pompili2016-08-10 18:30:11 +0200
commitce86015470efe35bae20339e33c45e62d2b0ca78 (patch)
treee67a9c9e7775133ed5c8fc5aa6735f9b72d637b2 /of-make-workspace
parenteca9edbc5f3cbde64b346a1d107f5adcc25f3d3c (diff)
downloadaur-ce86015470efe35bae20339e33c45e62d2b0ca78.tar.gz
Version 0.9.3-3
Diffstat (limited to 'of-make-workspace')
-rwxr-xr-xof-make-workspace14
1 files changed, 8 insertions, 6 deletions
diff --git a/of-make-workspace b/of-make-workspace
index adf3ffeeb19f..c69ac8397806 100755
--- a/of-make-workspace
+++ b/of-make-workspace
@@ -2,7 +2,7 @@
echo -e "Initializing local workspace for openFrameworks..."
-WS=~/of-workspace
+WS=${1:-~/of-workspace}
mkdir -p $WS
cd $WS
@@ -12,18 +12,18 @@ cp -R /opt/openFrameworks/addons .
OFPATH="/opt/openFrameworks/"
if [ -d "${OFPATH}/projectGenerator-linux64" ]; then
- PJ="projectGenerator-linux64"
+ PG="projectGenerator-linux64"
PLATFORM="linux64"
elif [ -d "${OFPATH}/projectGenerator" ]; then
- PJ="projectGenerator"
+ PG="projectGenerator"
PLATFORM="linux"
fi
OFWSPATH=`pwd`
-cp -R $OFPATH/$PJ .
+cp -R $OFPATH/$PG .
-touch $PJ/resources/app/settings.json
+touch $PG/resources/app/settings.json
echo -e "{\n\t\"advancedMode\": false,\n\t \
\"defaultOfPath\": \"$OFWSPATH\",\n\t \
@@ -32,7 +32,7 @@ echo -e "{\n\t\"advancedMode\": false,\n\t \
\"showConsole\": false,\n\t \
\"showDeveloperTools\": false, \n\t \
\"useDictionaryNameGenerator\": true,\n\t \
-\"verboseOutput\": false\n}" > $PJ/resources/app/settings.json
+\"verboseOutput\": false\n}" > $PG/resources/app/settings.json
mkdir -p apps/myApps
@@ -52,3 +52,5 @@ ln -s /opt/openFrameworks/LICENSE.md
ln -s /opt/openFrameworks/other
ln -s /opt/openFrameworks/README.md
ln -s /opt/openFrameworks/scripts
+
+ln -s scripts/$PG/projectGenerator