build: make build script more verbose

This commit is contained in:
Roi Klevansky
2024-10-14 00:02:22 +03:00
parent e70ba04f32
commit 4cde133d93
4 changed files with 103 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#!/bin/bash
# Include utils library
script_dir=$(dirname "$0")
. "$script_dir/utils.sh"
# List of package URLs to download
PACKAGE_URLS=(
"https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.17.tar.gz"
@ -181,6 +185,8 @@ function download_gdb_packages() {
# Run downloads in parallel
download_pids=()
fancy_title "Starting download of GDB packages"
for url in "${PACKAGE_URLS[@]}"; do
package_dir=$(package_url_to_dir "$url")
download_and_extract_package "$url" "$package_dir" &
@ -195,6 +201,8 @@ function download_gdb_packages() {
fi
done
fancy_title "Finished downloading GDB packages"
popd
}