#!/bin/bash

#================================================================================
# deployScriptsAll.bash - updates github Scripts folder for all labo's at once
# indend to push scripts from [eda_scripts](https://gitlab.hevs.ch/course/ElN/eda_scripts.git)
base_directory="$(dirname "$(readlink -f "$0")")"
pushd $base_directory

SEPARATOR='--------------------------------------------------------------------------------'
INDENT='  '
DATE=`date '+%Y-%m-%d %H:%M:%S'`

echo "$SEPARATOR"
echo "-- ${0##*/} Started!"
echo ""

./deployScripts.bash -v -p synd-did-labs -r https://github.com/hei-synd-did/did-labs.git
./deployScripts.bash -v -p ete-did-labs -r https://github.com/hei-ete-did/did-labs.git
./deployScripts.bash -v -p isc-did-labs -r https://github.com/hei-isc-did/did-labs.git
./deployScripts.bash -v -p did-chrono -r https://github.com/hei-synd-did/did-chrono.git
./deployScripts.bash -v -p did-cursor -r https://github.com/hei-synd-did/did-cursor.git
#./deployScripts.bash -v -p did-kart-ebs2 -r https://github.com/hei-synd-did/did-ket-ebs2.git # repo does not exist !!!
./deployScripts.bash -v -p did-inverter -r https://github.com/hei-ete-did/did-inverter.git
./deployScripts.bash -v -p did-synchro -r https://github.com/hei-ete-did/did-synchro.git
./deployScripts.bash -v -p did-kart-ebs3 -r https://github.com/hei-synd-did/did-kart-ebs3.git
./deployScripts.bash -v -p did-display -r https://github.com/hei-isc-did/did-display.git
./deployScripts.bash -v -p sem-labs -r https://github.com/hei-synd-sem/sem-labs.git
./deployScripts.bash -v -p car-labs -r https://github.com/hei-isc-car/car-labs.git -d heirv32_sc
./deployScripts.bash -v -p car-heirv -r https://github.com/hei-isc-car/car-heirv.git

#-------------------------------------------------------------------------------
# Exit
#
echo ""
echo "-- $DATE: ${0##*/} finished"
echo "$SEPARATOR"
popd