5 echo "Usage: $0 DIR" >&2
8 TARGET
="$(realpath "$1")"
9 echo "Installing to $TARGET"
12 curl
-sSL ftp://ftp.cs.ru.nl
/pub
/Clean
/builds
/linux-x64
/clean-bundle-complete-linux-x64-latest.tgz \
13 | gunzip |
tar --strip-components=1 --extract --directory="$TARGET"
15 if [ "$CLEAN_HOME" != "$TARGET" ]; then
16 echo "Add or change \$CLEAN_HOME to \"$TARGET\""
19 if [ "$(which clm)" != "$TARGET/bin" ]; then
20 echo "Replace the old clm path with \$CLEAN_HOME/bin in PATH"
22 echo "Add \$CLEAN_HOME/bin to your PATH"