Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
48 changes: 36 additions & 12 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,55 +19,82 @@ fi
# add missing libraries
export GITHUB="https://github.com/Arduino-CI"
if [ -d "./Adafruit_BusIO" ]; then
(cd Adafruit_BusIO; git pull)
(
cd Adafruit_BusIO
git pull
)
else
git clone $SHALLOW_MASTER $GITHUB/Adafruit_BusIO.git
fi

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

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

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

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

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

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

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

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