foundry
Foundry OS: the operating system built on the Rustbelt kernel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/usr/bin/env bash
# Download a port's release tarball into the download cache (default cache/)
# and check it against the SHA256 pinned in ports/NAME/NAME.sha256. Nothing
# downloaded is ever committed: cache/ is git-ignored.
#
# NAME.url lists one or more download URLs, one per line, tried in order
# (upstream first, then mirrors). The SHA256 decides, not the URL: a mirror
# copy is only kept if it is byte-for-byte the pinned release.
#
# Offline? Put the tarball in cache/ yourself (any copy with the right
# SHA256 is fine).
#
# Usage: ports/fetch.sh NAME [CACHE_DIR]
HERE=
NAME= CACHE=
dest=/
if [; then
while ; do
[ || continue
if &&
| ; then
; break
fi
;
done
fi
if | ; then
else
;
fi
|