modified build system + added musl_c build
This commit is contained in:
parent
72539d23c4
commit
00915846b7
7 changed files with 79 additions and 24 deletions
|
|
@ -1,12 +1,15 @@
|
|||
#/bin/sh
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
SOURCES_FILE=./sources.list
|
||||
|
||||
while IFS= read -r url; do \
|
||||
[ -z "$url" ] && continue; \
|
||||
fname="$(printf '%s' "$url" | sed -E 's/[?#].*$//' | sed -E 's!.*/!!')"; \
|
||||
if [ -e "$(OUTDIR)/$fname" ]; then \
|
||||
if [ -e "./sources/$fname" ]; then \
|
||||
printf "SKIP: %s (already exists)\n" "$fname"; \
|
||||
else \
|
||||
printf "GET: %s -> %s\n" "$url" "$fname"; \
|
||||
curl -o "./sources/$fname" "$url" || { printf "ERROR: failed to download %s\n" "$url"; exit 1; }; \
|
||||
fi; \
|
||||
done < ${SOURCES_FILE}; \
|
||||
done < "$SOURCES_FILE"; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue