20-eclipse.sh 1.3 KB
Newer Older
YannGarcia's avatar
YannGarcia committed
#!/bin/bash

#set -e
set -vx

echo -e "*****************************\n* Install eclipse\n*****************************\n"

YannGarcia's avatar
YannGarcia committed
ECLIPSE_URL='http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/technology/epp/downloads/release/2021-12/R/eclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz'
TITAN_URL='https://www.eclipse.org/downloads/download.php?file=/titan/TITAN_Designer_and_Executor_plugin-8.1.0.zip'

YannGarcia's avatar
YannGarcia committed
mkdir -p ${HOME}/frameworks
cd ${HOME}/frameworks || exit 1
YannGarcia's avatar
YannGarcia committed
wget --progress=dot:mega $ECLIPSE_URL -Oeclipse-cpp-2020-06-R-linux-gtk-x86_64.tar.gz || exit 1
YannGarcia's avatar
YannGarcia committed
tar -zxvf ./eclipse-cpp-2020-06-R-linux-gtk-x86_64.tar.gz || exit 1
ln -sf ${HOME}/frameworks/eclipse/eclipse ${HOME}/bin/eclipse
rm -f ./eclipse-cpp-2020-06-R-linux-gtk-x86_64.tar.gz

YannGarcia's avatar
YannGarcia committed
if wget --progress=dot:mega $TITAN_URL -OTITAN_Designer_and_Executor_plugin.zip; then
YannGarcia's avatar
YannGarcia committed
  eclipse/eclipse -noSplash -application org.eclipse.equinox.p2.director \
    -destination /home/etsi/frameworks/eclipse \
YannGarcia's avatar
YannGarcia committed
    -repository 'jar:file:///home/etsi/frameworks/TITAN_Designer_and_Executor_plugin.zip' \
YannGarcia's avatar
YannGarcia committed
    -installIU TITAN_Designer.feature.group,TITAN_Executor.feature.group,TITAN_Log_Viewer.feature.group,Titan_external_dependencies.feature.group,Titanium.feature.group,Titanium_external_dependencies.feature.group
  rm -f TITAN_Designer_and_Executor_plugin.zip
fi

cd ${HOME}