X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=install_clean.sh;h=f5da1d90405ccf4d9e61c172efc9ab058af281b2;hb=6abf86833edeae1742db393160db8a9e5c043889;hp=9c16511bb2f4ad59e00d5e0d0ff7c67f4d6f7070;hpb=09a48361466fa6f4be0275a33b5bd2fdfe8ee52b;p=mTask.git diff --git a/install_clean.sh b/install_clean.sh index 9c16511..f5da1d9 100755 --- a/install_clean.sh +++ b/install_clean.sh @@ -6,10 +6,22 @@ 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" + +echo "Apply patches" >&2 +curl -sSL https://gitlab.science.ru.nl/mlubbers/iTasks-SDK/raw/95-addbackgroundtask/Libraries/iTasks/_Framework/TaskServer.dcl\ + > "$TARGET"/lib/iTasks/iTasks/_Framework/TaskServer.dcl +curl -sSL https://gitlab.science.ru.nl/mlubbers/iTasks-SDK/raw/95-addbackgroundtask/Libraries/iTasks/_Framework/TaskServer.icl\ + > "$TARGET"/lib/iTasks/iTasks/_Framework/TaskServer.icl -echo "export CLEAN_HOME=$TARGET" -echo "export PATH=$TARGET:\$PATH" +echo "export CLEAN_HOME=$TARGET; export PATH=$TARGET/bin:\$PATH;"