Skip to content

Commit abc963f

Browse files
KavikickJames Foster
andauthored
Updated install scripts (Open-Acidification#68)
Co-authored-by: James Foster <[email protected]>
1 parent 11a4fa1 commit abc963f

File tree

2 files changed

+47
-23
lines changed

2 files changed

+47
-23
lines changed

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ sudo apt install -y \
44
build-essential git ruby libgtk-3-dev \
55
python3-dev python3-pip python-is-python3
66
sudo gem install bundler
7-
git clone https://github.com/Open-Acidification/TankControllerLib.git
8-
cd TankControllerLib
7+
git clone https://github.com/Open-Acidification/TankController.git
8+
cd TankController
99
bundle config --local path vendor/bundle
1010
bundle install
1111
scripts/install_libraries.sh

scripts/install_libraries.sh

Lines changed: 45 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ export SHALLOW_MASTER='--depth 1 --branch master --single-branch '
99
# use this if you started with SHALLOW and now want the full repository with history
1010
# git fetch --unshallow
1111

12-
# Use for installing locally
13-
# cd $(bundle exec arduino_library_location.rb)
14-
1512
if ! [ $(id -u) = 0 ]; then
1613
bundle config --local path vendor/bundle
1714
bundle install
@@ -22,64 +19,91 @@ fi
2219
# add missing libraries
2320
export GITHUB="https://github.com/Arduino-CI"
2421
if [ -d "./Adafruit_BusIO" ]; then
25-
echo update Adafruit_BusIO
26-
(cd Adafruit_BusIO; git pull)
22+
(
23+
echo update Adafruit_BusIO
24+
cd Adafruit_BusIO
25+
git pull
26+
)
2727
else
2828
git clone $SHALLOW_MASTER $GITHUB/Adafruit_BusIO.git
2929
fi
3030

3131
if [ -d "./Adafruit_MAX31865" ]; then
32-
echo update Adafruit_MAX31865
33-
(cd Adafruit_MAX31865; git pull)
32+
(
33+
echo update Adafruit_MAX31865
34+
cd Adafruit_MAX31865
35+
git pull
36+
)
3437
else
3538
git clone $SHALLOW_MAIN $GITHUB/Adafruit_MAX31865.git
3639
fi
3740

3841
if [ -d "./Ethernet" ]; then
39-
echo update Ethernet
40-
(cd Ethernet; git pull)
42+
(
43+
echo update Ethernet
44+
cd Ethernet
45+
git pull
46+
)
4147
else
4248
git clone $SHALLOW_MASTER $GITHUB/Ethernet.git
4349
fi
4450

4551
if [ -d "./LiquidCrystal" ]; then
46-
echo update LiquidCrystal
47-
(cd LiquidCrystal; git pull)
52+
(
53+
echo update LiquidCrystal
54+
cd LiquidCrystal
55+
git pull
56+
)
4857
else
4958
git clone $SHALLOW_MASTER $GITHUB/LiquidCrystal.git
5059
fi
5160

5261
if [ -d "./RTClib" ]; then
53-
echo update RTClib
54-
(cd RTClib; git pull)
62+
(
63+
echo update RTClib
64+
cd RTClib
65+
git pull
66+
)
5567
else
5668
git clone $SHALLOW_MASTER $GITHUB/RTClib.git
5769
fi
5870

5971
if [ -d "./Keypad" ]; then
60-
echo update Keypad
61-
(cd Keypad; git pull)
72+
(
73+
echo update Keypad
74+
cd Keypad
75+
git pull
76+
)
6277
else
6378
git clone $SHALLOW_MASTER $GITHUB/Keypad.git
6479
fi
6580

6681
if [ -d "./Arduino-PID-Library" ]; then
67-
echo update Arduino-PID-Library
68-
(cd Arduino-PID-Library; git pull)
82+
(
83+
echo update Arduino-PID-Library
84+
cd Arduino-PID-Library
85+
git pull
86+
)
6987
else
7088
git clone $SHALLOW_MASTER $GITHUB/Arduino-PID-Library.git
7189
fi
7290

7391
if [ -d "./Arduino-PID-AutoTune-Library" ]; then
74-
echo update Arduino-PID-AutoTune-Library
75-
(cd Arduino-PID-AutoTune-Library; git pull)
92+
(
93+
echo update Arduino-PID-AutoTune-Library
94+
cd Arduino-PID-AutoTune-Library
95+
git pull
96+
)
7697
else
7798
git clone $SHALLOW_MASTER $GITHUB/Arduino-PID-AutoTune-Library.git
7899
fi
79100

80101
if [ -d "./SD" ]; then
81-
echo update SD
82-
(cd SD; git pull)
102+
(
103+
echo update SD
104+
cd SD
105+
git pull
106+
)
83107
else
84108
git clone $SHALLOW_MAIN $GITHUB/SD.git
85109
fi

0 commit comments

Comments
 (0)