blob: adf3ffeeb19f11e34f64b9fe984be6edb956ac12 (
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
|
#!/bin/bash
echo -e "Initializing local workspace for openFrameworks..."
WS=~/of-workspace
mkdir -p $WS
cd $WS
cp -R /opt/openFrameworks/addons .
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`
cp -R $OFPATH/$PJ .
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 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
|