diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-26 20:57:56 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-26 20:57:56 +0200 |
commit | 9aac2511d37e2749ebc579e89758eb27cef289e7 (patch) | |
tree | 7a59a3875e45e3fca5599050e64e4b18b3064df0 /cmake/Win64Depends.sh | |
parent | 8af337c83c54539413ed0f3c7b04a50d7187be7f (diff) | |
download | tdv-9aac2511d37e2749ebc579e89758eb27cef289e7.tar.gz tdv-9aac2511d37e2749ebc579e89758eb27cef289e7.tar.xz tdv-9aac2511d37e2749ebc579e89758eb27cef289e7.zip |
Win64Depends.sh: only extract what we need
In case the packages directory has been preloaded or symlinked.
Diffstat (limited to 'cmake/Win64Depends.sh')
-rw-r--r-- | cmake/Win64Depends.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake/Win64Depends.sh b/cmake/Win64Depends.sh index f9d33e9..ba9f88a 100644 --- a/cmake/Win64Depends.sh +++ b/cmake/Win64Depends.sh @@ -27,7 +27,8 @@ fetch() { } BEGIN { while ((getline < "db.tsv") > 0) { filenames[$1] = $2; deps[$1] = ""; for (i = 3; i <= NF; i++) { gsub(/[<=>].*/, "", $i); deps[$1] = deps[$1] $i FS } - } for (i = 0; i < ARGC; i++) get(ARGV[i]) }' "$@" | while IFS= read -r name + } for (i = 0; i < ARGC; i++) get(ARGV[i]) }' "$@" | tee db.want | \ + while IFS= read -r name do status Fetching "$name" [ -f "packages/$name" ] || curl -#o "packages/$name" "$repository/$name" @@ -44,9 +45,9 @@ extract() { for subdir in * do [ -d "$subdir" -a "$subdir" != packages ] && rm -rf -- "$subdir" done - for i in packages/* - do bsdtar -xf "$i" --strip-components 1 mingw64 - done + while IFS= read -r name + do bsdtar -xf "packages/$name" --strip-components 1 + done < db.want } configure() { |