Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ sudo apt install -y \
build-essential git ruby libgtk-3-dev \
python3-dev python3-pip python-is-python3
sudo gem install bundler
git clone https://github.com/Open-Acidification/TankControllerLib.git
cd TankControllerLib
git clone https://github.com/Open-Acidification/TankController.git
cd TankController
bundle config --local path vendor/bundle
bundle install
scripts/install_libraries.sh
66 changes: 45 additions & 21 deletions scripts/install_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ export SHALLOW_MASTER='--depth 1 --branch master --single-branch '
# use this if you started with SHALLOW and now want the full repository with history
# git fetch --unshallow

# Use for installing locally
# cd $(bundle exec arduino_library_location.rb)

if ! [ $(id -u) = 0 ]; then
bundle config --local path vendor/bundle
bundle install
Expand All @@ -22,64 +19,91 @@ fi
# add missing libraries
export GITHUB="https://github.com/Arduino-CI"
if [ -d "./Adafruit_BusIO" ]; then
echo update Adafruit_BusIO
(cd Adafruit_BusIO; git pull)
(
echo update Adafruit_BusIO
cd Adafruit_BusIO
git pull
)
else
git clone $SHALLOW_MASTER $GITHUB/Adafruit_BusIO.git
fi

if [ -d "./Adafruit_MAX31865" ]; then
echo update Adafruit_MAX31865
(cd Adafruit_MAX31865; git pull)
(
echo update Adafruit_MAX31865
cd Adafruit_MAX31865
git pull
)
else
git clone $SHALLOW_MAIN $GITHUB/Adafruit_MAX31865.git
fi

if [ -d "./Ethernet" ]; then
echo update Ethernet
(cd Ethernet; git pull)
(
echo update Ethernet
cd Ethernet
git pull
)
else
git clone $SHALLOW_MASTER $GITHUB/Ethernet.git
fi

if [ -d "./LiquidCrystal" ]; then
echo update LiquidCrystal
(cd LiquidCrystal; git pull)
(
echo update LiquidCrystal
cd LiquidCrystal
git pull
)
else
git clone $SHALLOW_MASTER $GITHUB/LiquidCrystal.git
fi

if [ -d "./RTClib" ]; then
echo update RTClib
(cd RTClib; git pull)
(
echo update RTClib
cd RTClib
git pull
)
else
git clone $SHALLOW_MASTER $GITHUB/RTClib.git
fi

if [ -d "./Keypad" ]; then
echo update Keypad
(cd Keypad; git pull)
(
echo update Keypad
cd Keypad
git pull
)
else
git clone $SHALLOW_MASTER $GITHUB/Keypad.git
fi

if [ -d "./Arduino-PID-Library" ]; then
echo update Arduino-PID-Library
(cd Arduino-PID-Library; git pull)
(
echo update Arduino-PID-Library
cd Arduino-PID-Library
git pull
)
else
git clone $SHALLOW_MASTER $GITHUB/Arduino-PID-Library.git
fi

if [ -d "./Arduino-PID-AutoTune-Library" ]; then
echo update Arduino-PID-AutoTune-Library
(cd Arduino-PID-AutoTune-Library; git pull)
(
echo update Arduino-PID-AutoTune-Library
cd Arduino-PID-AutoTune-Library
git pull
)
else
git clone $SHALLOW_MASTER $GITHUB/Arduino-PID-AutoTune-Library.git
fi

if [ -d "./SD" ]; then
echo update SD
(cd SD; git pull)
(
echo update SD
cd SD
git pull
)
else
git clone $SHALLOW_MAIN $GITHUB/SD.git
fi