zx/unix/get_zx
Craig Everett 30f1c04325 Runtime checks
- Check for presence of WX when running a GUI app
- Ensure current Erlang runtime matches bytecode on Linux
2022-01-31 20:18:44 +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.3
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"