1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 21:57:34 +00:00

Ports: Make files a proper array

This commit is contained in:
Tim Schumacher 2023-07-10 13:10:29 +02:00 committed by Jelle Raaijmakers
parent 3c2d846b94
commit 284fee9e77
311 changed files with 959 additions and 350 deletions

View file

@ -317,20 +317,14 @@ func_defined fetch || fetch() {
tried_download_again=0
while true; do
OLDIFS=$IFS
IFS=$'\n'
for f in $files; do
IFS=$OLDIFS
for f in "${files[@]}"; do
read url filename auth_sum<<< $(echo "$f")
do_download_file "$url" "${PORT_META_DIR}/${filename}"
done
verification_failed=0
OLDIFS=$IFS
IFS=$'\n'
for f in $files; do
IFS=$OLDIFS
for f in "${files[@]}"; do
read url filename auth_sum<<< $(echo "$f")
# check sha256sum if given
@ -357,10 +351,7 @@ func_defined fetch || fetch() {
done
# extract
OLDIFS=$IFS
IFS=$'\n'
for f in $files; do
IFS=$OLDIFS
for f in "${files[@]}"; do
read url filename auth_sum<<< $(echo "$f")
if [ ! -f "$workdir"/.${filename}_extracted ]; then
@ -435,10 +426,7 @@ clean() {
rm -rf "${PORT_BUILD_DIR}/"*
}
clean_dist() {
OLDIFS=$IFS
IFS=$'\n'
for f in $files; do
IFS=$OLDIFS
for f in "${files[@]}"; do
read url filename hash <<< $(echo "$f")
rm -f "${PORT_META_DIR}/${filename}"
done