blob: 1e01c756656c91ed31c541bacb90cb8b20c3d9d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#!/bin/bash
echo -e "Initializing local workspace for openFrameworks..."
WS=${1:-~/of-workspace}
mkdir -p $WS
cd $WS
cp -R /opt/openFrameworks/addons .
OFPATH="/opt/openFrameworks/"
if [ -d "${OFPATH}/projectGenerator-linux64" ]; then
PG="projectGenerator-linux64"
PLATFORM="linux64"
elif [ -d "${OFPATH}/projectGenerator" ]; then
PG="projectGenerator"
PLATFORM="linux"
fi
OFWSPATH=`pwd`
cp -R $OFPATH/$PG .
touch $PG/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}" > $PG/resources/app/settings.json
mkdir -p apps/myApps
cd apps/myApps
ln -s /opt/openFrameworks/apps/myApps/emptyExample
cd ../..
ln -s /opt/openFrameworks/CHANGELOG.md
ln -s /opt/openFrameworks/docs
ln -s /opt/openFrameworks/examples
ln -s /opt/openFrameworks/export
ln -s /opt/openFrameworks/INSTALL.md
cp -R /opt/openFrameworks/libs .
ln -s /opt/openFrameworks/LICENSE.md
ln -s /opt/openFrameworks/other
ln -s /opt/openFrameworks/README.md
ln -s /opt/openFrameworks/scripts
ln -s $PG/projectGenerator
|