update install script with eval
[mTask.git] / install_clean.sh
1 #!/bin/sh
2 set -e
3 if [ "$#" -eq 0 ];
4 then
5 echo "Usage: $0 DIR" >&2
6 exit 1;
7 fi
8 TARGET="$(realpath "$1")"
9 rm -fr "$TARGET"
10 mkdir -p "$TARGET"
11 curl -sSL ftp://ftp.cs.ru.nl/pub/Clean/builds/linux-x64/clean-bundle-complete-linux-x64-latest.tgz \
12 | gunzip | tar --strip-components=1 --extract --directory="$TARGET"
13
14 if [ "$CLEAN_HOME" != "$TARGET" ]; then
15 echo "Add or change \$CLEAN_HOME to \"$TARGET\""
16 fi
17 echo "CLEAN_HOME=$TARGET"
18 echo "PATH=$TARGET:\$PATH"