X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=install_clean.sh;h=2a42593d0594ad6a1428660e555548c510d202f9;hb=de76c5f5ac6a0c4291b51d5b2c16e3611b5c99e3;hp=005cbe7c98caf3c844a4cd7a92cfbd6077e7029d;hpb=823d07d35d661449ebdfc3638ce0140dec5f3897;p=mTask.git diff --git a/install_clean.sh b/install_clean.sh index 005cbe7..2a42593 100755 --- a/install_clean.sh +++ b/install_clean.sh @@ -6,9 +6,20 @@ then exit 1; fi TARGET="$(realpath "$1")" + +echo "Removing and repopulating $TARGET" >&2 +if [ -d "$TARGET" ]; then + mv "$TARGET" "$TARGET.$(date +%F)" || rm -fr "$TARGET" +fi rm -fr "$TARGET" mkdir -p "$TARGET" + +echo "Downloading and installing clean nightly" >&2 curl -sSL ftp://ftp.cs.ru.nl/pub/Clean/builds/linux-x64/clean-bundle-complete-linux-x64-latest.tgz \ - | gunzip | tar --strip-components=1 --extract --directory="$TARGET" + | tar --gunzip --strip-components=1 --extract --directory="$TARGET" +curl -sSL https://gitlab.science.ru.nl/clean-and-itasks/iTasks-SDK/raw/master/Libraries/iTasks/_Framework/TaskServer.dcl \ + > $TARGET/lib/iTasks/iTasks/_Framework/TaskServer.dcl +curl -sSL https://gitlab.science.ru.nl/clean-and-itasks/iTasks-SDK/raw/master/Libraries/iTasks/_Framework/TaskServer.icl \ + > $TARGET/lib/iTasks/iTasks/_Framework/TaskServer.icl echo "export CLEAN_HOME=$TARGET; export PATH=$TARGET/bin:\$PATH;"