zx/unix/get_zx
Craig Everett c7d7cda7c2 Bug fixes
- Support IPv4-only systems
- Fix "~" log message crash in tell/2,3
2022-11-21 09:58:36 +09:00

26 lines
490 B
Bash
Executable File

#! /bin/bash
# A convenience script that will download the ZX installer, unpack it, and clean up.
# For maximum portability this script uses the gzipped package version.
version=0.12.7
zx="zx-$version"
tarball="$zx.tar.gz"
target="https://zxq9.com/projects/zomp/$tarball"
if command -v wget &> /dev/null
then
wget -nv "$target"
else
curl -s "$target" --output "$tarball"
fi
tar -zxf "$tarball"
cd "$zx"
chmod +x install
./install
cd ..
rm -rf "$zx"
rm "$tarball"
rm -- "$0"