#!/bin/bash # SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2012-2024 Scott Penrose and WII5 Buoy contributors # # This file is part of WII5 Buoy firmware. # See LICENSE for full terms. # Copy the Arduino libraries this project depends on into a target directory # (typically your project's src/ tree, or an arduino-cli libraries dir). # # Configure with env vars: : "${WII5_LIB_SRC:?source dir holding all the Arduino library trees, e.g. ~/Arduino/libraries}" : "${WII5_LIB_DEST:?destination dir, e.g. ./src or ~/Arduino/libraries}" cd "$WII5_LIB_SRC" rsync -av \ ADS1247 \ AltSoftSerial \ Arduino-EEPROMex \ ArduinoUniqueID \ Arduino_JSON \ ButtonEvent \ CRC32 \ CalLib \ DCF77 \ DS1307RTC \ DS3231 \ DS3231RTC \ DS3232RTC \ DallasTemperature \ DueFlash \ Enerlib \ FTRGBLED \ Filters \ I2C \ I2Cdev \ IridiumSBD \ LowPower \ Manchester \ MemoryFree \ OneWire \ PCM \ PushButton \ RFM69 \ RTArduLink \ RTC \ RTCTimedEvent \ RTClib \ RTIMULib \ RunningMedian \ SDBlock \ SDCore \ SFE_BMP180 \ SPIFlash \ SdFat \ Sensirion \ SoftReset \ Statistic \ TemperatureController \ Time \ TimeAlarms \ TimedEvent \ TimerOne \ TinyGPS \ TinyGPSPlus \ TrueRandom-master \ Ultrasonic \ XModem \ elapsedMillis \ keypad \ RadioHead \ SdFs \ "$WII5_LIB_DEST/"