LedBars/RpiLedBars/install.sh
2022-07-20 16:57:01 +02:00

19 lines
451 B
Bash

#! /usr/bin/env bash
target=pi_hotspot
dir_target=~/RpiLedBars
# I - Copy project to pi target
## 1 - select target from ssh config
## 2 - rsync project
rsync -avz --delete --backup-dir=../RpiLedBars_backup/"$(date +%F_%H-%M-%S)" ./ -e ssh ${target}:${dir_target}
# II - Connect to pi target
## 1 - Check prequistite (cava, i2s micropphone module, CMake)
## 2 - Build project
ssh ${target} "cd ${dir_target}/frontend && "
## 3 - Install project