2022-05-08 18:54:23 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# checkouts submodules based on the tag
|
|
|
|
# provided in `tags.env`
|
|
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
2023-01-10 17:19:35 +01:00
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
|
2022-05-08 18:54:23 +02:00
|
|
|
export $(cat tags.env | sed 's/#.*//g' | xargs)
|
|
|
|
|
|
|
|
function checkout {
|
|
|
|
path=$1
|
|
|
|
ref=$2
|
|
|
|
pushd $path
|
2023-01-10 17:19:35 +01:00
|
|
|
git fetch
|
2022-05-08 18:54:23 +02:00
|
|
|
git checkout $ref
|
2023-01-10 17:19:35 +01:00
|
|
|
echo ""
|
2022-05-08 18:54:23 +02:00
|
|
|
popd > /dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
checkout mod/webrtc-sfu/bbb-webrtc-sfu $TAG_WEBRTC_SFU
|
|
|
|
checkout mod/nginx/bbb-playback $TAG_PLAYBACK
|
|
|
|
checkout mod/bbb-pads/bbb-pads $TAG_PADS
|
|
|
|
checkout mod/webhooks/bbb-webhooks $TAG_WEBHOOKS
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "# git submodule"
|
|
|
|
git submodule
|