ano-install.sh 859 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

if ! type ano > /dev/null; then
    mkdir -p .arturo-temp
    cd .arturo-temp && wget https://github.com/scottdarch/Arturo/archive/master.zip
    unzip master.zip
    cd Arturo-master && sudo python setup.py install
    cd ../.. && sudo rm -rf .arturo-temp
else
    echo "[OK] Arturo tool exists.";
fi

ano list-models > /dev/null

if [ ! $? -eq 0 ]; then
    printf "\nArturo (http://32bits.io/Arturo/) tool seems not be working with your system's Arduino instalation. Here is what you can try:\n"
    printf "\n    * Specify a new Arduino toolchain (for instance, downloaded at https://www.arduino.cc/en/Main/Software) with:\n"
    printf "\n       $ make bu BUILD_WITH=ano ARDUINO=~/Downloads/arduino-1.6.5\n"
    printf "\n    * Simply use de Arduino IDE to compile and upload the firmware yourself.\n"
else
    echo "[OK] Arturo tool seems to work."
fi