The decision is based on what command is available on the system. This makes
the script more universal and requires less actions from the user (e.g.
including 'coreutils' into PATH on macOS).
We try the following commands:
* gsha256sum
* shasum
* sha256sum
The variable was left there in a4fb3d42aa3800a062e074f8b076435752ecf637. It
causes the installation to fail with the following error:
cmake/install-share.sh: 93: install-share.sh: UNPACK_PARAMS: not found
Remove only the subdirectories and files that are used by RetDec. This should
reduce the chance of unintentionally removing system directories when RetDec is
accidentally installed on Linux into e.g. `/usr` as the `arm`, `generic`, and
`x86` directories are not commonly used by Linux distributions.
Nevertheless, as mentioned in our README, until our build system properly
supports system-wide installations, RetDec should to be installed into a clean,
dedicated directory.