File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- echo " Cloning ArduinoCore API in" $HOME
4
- git clone git@github.com:arduino/ArduinoCore-API ~ /.ArduinoCore-API
3
+ API_FOLDER=~ /.ArduinoCore-API
4
+ if [ ! -d " $API_FOLDER " ] ; then
5
+ echo " Cloning ArduinoCore API in" $API_FOLDER
6
+ git clone git@github.com:arduino/ArduinoCore-API ~ /.ArduinoCore-API
7
+ else
8
+ echo " API Folder already exists, skipping clone..."
9
+ fi
5
10
6
11
echo " Commenting out WCharacter.h because it fails to build properly"
7
12
sed ' /WCharacter.h/ s/./\/\/ &/' ~ /.ArduinoCore-API/api/ArduinoAPI.h > ~ /.ArduinoCore-API/api/tmpArduinoAPI.h
8
13
mv ~ /.ArduinoCore-API/api/tmpArduinoAPI.h ~ /.ArduinoCore-API/api/ArduinoAPI.h
9
14
10
- echo " Linking..."
11
- # ln -s ~/Downloads/ArduinoCore-API/api ~/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/.
15
+ echo " \n\nLinking..."
16
+ ln -sf ~ /.ArduinoCore-API/api ~ /zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/.
17
+
18
+ echo " \nModule Successfully installed..."
You can’t perform that action at this time.
0 commit comments