forked from sudomesh/disaster-radio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetch_deps.sh
executable file
·40 lines (35 loc) · 1.13 KB
/
fetch_deps.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
#!/bin/bash
set -e
if [ -d makeEspArduino ]; then rm -rf makeEspArduino; fi
if [ -d esp8266-arduino ]; then rm -rf esp8266-arduino; fi
if [ -d libs/ESPAsyncTCP ]; then rm -rf libs/ESPAsyncTCP; fi
if [ -d libs/ESPAsyncWebServer ]; then rm -rf libs/ESPAsyncWebServer; fi
if [ -d libs/arduino-LoRa ]; then rm -rf libs/arduino-LoRa; fi
# get makeEspArduino
git clone https://github.com/plerup/makeEspArduino
cd makeEspArduino
git checkout tags/4.13.0
cp makeEspArduino.mk ../Makefile
cd ../
# install esp8266-arduino build environment
git clone https://github.com/esp8266/Arduino.git esp8266-arduino
cd esp8266-arduino/
git checkout tags/2.4.0-rc1
cd tools/
python get.py
cd ../../
# install ESPAsyncTCP and ESPAsyncWebserver
mkdir -p libs
cd libs/
git clone https://github.com/me-no-dev/ESPAsyncTCP
cd ESPAsyncTCP/
git checkout 991f855109d8038ed2cf0b5fb89792fcfa23549c
cd ../
git clone https://github.com/me-no-dev/ESPAsyncWebServer
cd ESPAsyncWebServer/
git checkout e6c432e56327c166bb71dbc0317654790dcbe3af
cd ../
git clone https://github.com/sandeepmistry/arduino-LoRa
cd arduino-LoRa/
git checkout dff276e26845727049a48a624d0eb2b545f3bb6a
cd ../../