forked from nengo/nengo-1.4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installStandalone
executable file
·55 lines (44 loc) · 2.07 KB
/
installStandalone
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
#!/bin/sh
# by Jaroslav Vitku [vitkujar@fel.cvut.cz]
# This script installs standalone Nengo by means of Gradle.
# Note that this compilation requires rosjava_core installed in ~/.m2/repository , e.g.:
# cd ../ && git clone https://github.com/rosjava/rosjava_core.git && git checkout hydro-devel && ./gradlew install
# see: https://github.com/rosjava/rosjava_core
#
#
# After downloading the project into your computer, run this script to install Nengo
#
# This script does:
# -compiles Nengo and installs it into local maven repository (~/.m2/repository/)
# -creates eclipse projects
echo "\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX "
echo " XXXXXXXX Building the Nengo, generating eclipse projects.. "
echo " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"
# bug in gradle generates duplicate entries if .classpath file exist:
if [ -f simulator/.classpath ]; then rm simulator/.classpath
fi
if [ -f simulator-ui/.classpath ]; then rm simulator-ui/.classpath
fi
# set this as parent multi-project for gradle
cp .versions/standalone.build.gradle build.gradle
cp .versions/standalone.settings.gradle settings.gradle
# note that you should edit these files build.gradle.* in order to change the settings!
cp simulator-ui/.versions/standalone.build.gradle simulator-ui/build.gradle
cp simulator/.versions/standalone.build.gradle simulator/build.gradle
# run tests?
TEST=0
if [ "$TEST" -eq "1" ]; then
./gradlew clean build install eclipse --continue
echo "Authors of Nengo: \" If you see \"BUILD FAILED\" above and you are worried... relax!\" \"Its normal.\""
echo "\"Moving right along...\""
else
./gradlew clean build install eclipse --continue -x test
fi
rm build.gradle
rm settings.gradle
# removed so the user won't edit it..
rm simulator-ui/build.gradle
rm simulator/build.gradle
echo "\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX "
echo " XXXXXXXX All done "
echo " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"