-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallUIOapi.sh
44 lines (36 loc) · 1.51 KB
/
installUIOapi.sh
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
#!/bin/bash
# Bash script to install Waspmote IDE with UIO sketches and libraries
# Linux ONLY
#
# Simon Filhol, David Ibanez
#
#
# WARNING: before running this script make sure to have git setup with ssh cloning capabilities
set -e # exit if a statement returns a non-zero error code
set -u # error if an unset variable is used
printf "WARNING: before running this script make sure to have git setup with ssh cloning capabilities"
printf "\n\t Also, make sure your github account is set up with a ssh key! \n"
printf "\n\n"
printf "Creating folder and clone git UIO repositories ...\n"
mkdir waspmote-uio
cd waspmote-uio
git clone [email protected]:spectraphilic/waspmoteapi-uio.git -b v044
git clone [email protected]:spectraphilic/wasp_sketches.git
# Download Waspmote IDE, and install it
export NAME=waspmote-pro-ide-v06.31-linux64
printf "Downloading Waspmote IDE, and installing it ...\n"
mkdir $NAME
cd $NAME
wget http://downloads.libelium.com/$NAME.zip
unzip $NAME.zip
./install.sh
# create symbolic link to our own copy of the librayr API
printf "creating symlink to our own copy of the librayr API ...\n"
mv libraries libraries.bak
ln -s ../waspmoteapi-uio/libraries
cd hardware/waspmote/avr/cores/
mv waspmote-api waspmote-api.bak
ln -s ../../../../../waspmoteapi-uio/waspmote-api
printf "Installation almost finished... \n\n Go to the Waspmote IDE Preference: \n\t -change the Sketchbook Location to .../wasp_sketches \n\t - accept changes"
printf "\n"
printf "For more information see \n https://github.com/spectraphilic/wasp_sketches"