8 Commits

Author SHA1 Message Date
Michael Forney
6a6672c57e Detect sha256 tool automatically 2020-05-08 13:49:57 -07:00
Michael Forney
f74127556d Detect decompression tool automatically
This fixes cross-compilation from macOS, whose bsdtar does support
xz through liblzma, but does not have xz(1).
2020-05-08 13:05:22 -07:00
Michael Forney
0dbae24a86 Address some shellcheck warnings 2020-04-19 02:13:23 -07:00
Michael Forney
e617f7bdf2 Use gzipped archives when size difference is negligible 2020-04-15 19:09:56 -07:00
Michael Forney
ea72d6bab9 Use main compression tool instead of *cat variants 2020-04-15 19:09:56 -07:00
Michael Forney
3c7d1aadfb Allow overriding sha256 command through SHA256SUM
This way, oasis can be bootstrapped on other operating systems by
setting SHA256SUM='shasum -a 256'.
2020-04-15 19:09:56 -07:00
Michael Forney
e5bb6756c1 Allow overriding pax command with PAXREAD
Most systems do not have pax installed by default, or it is not available
at all. However, since we are relying on the -s flag for member name
substitution, we can't just use a tar command that works everywhere.

Instead, support the environment variable PAXREAD to specify the command
to use in place of `pax -r`. Since bsdtar from libarchive supports -s,
we can set PAXREAD='bsdtar -xf -'.
2019-03-11 12:20:37 -07:00
Michael Forney
741d252822 Port build scripts to POSIX shell
Since we are now using Lua to generate ninja files, use of rc in build scripts
seems unnecessary and adds an additional bootstrap dependency. None of them are
too fancy, so just port to POSIX sh instead.
2018-02-16 02:52:34 -08:00