bigbluebutton-v2.5.11/build/get_external_dependencies.sh

23 lines
661 B
Bash
Raw Normal View History

2023-01-16 14:25:39 +08:00
#!/bin/bash -xe
cd "$(dirname "$0")/.."
# get the list of stuff that needs to be downloaded from
# .gitlab-ci.yml, so we don't need to maintain it in two places.
DEPENDENCIES=$(python3 -c 'import yaml; print(" ".join(yaml.load(open(".gitlab-ci.yml"), Loader=yaml.SafeLoader)["get_external_dependencies"]["artifacts"]["paths"]))')
for DEPENDENCY in $DEPENDENCIES; do
DOWNLOAD_COMMAND_FILE="${DEPENDENCY}.placeholder.sh"
echo "getting component ${DOWNLOAD_COMMAND_FILE}..."
bash -xe "$DOWNLOAD_COMMAND_FILE" &
done
wait
set +x
echo "downloaded external dependencies:"
for DEPENDENCY in $DEPENDENCIES; do
du --summarize -h "$DEPENDENCY"
done