20-eclipse.sh 1.53 KB
Newer Older
1
2
#!/bin/bash

YannGarcia's avatar
YannGarcia committed
3
4
5
ECLIPSE_URL='https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2020-06/R/eclipse-jee-2020-06-R-linux-gtk-x86_64.tar.gz&r=1'
TITAN_URL='https://www.eclipse.org/downloads/download.php?file=/titan/TITAN_Designer_and_Executor_Plugin_7.1.0.zip&r=1'

6
7
8
9
#set -e
set -vx

echo -e "*****************************\n* Install eclipse\n*****************************\n"
YannGarcia's avatar
YannGarcia committed
10

11
12
mkdir -p ${HOME}/frameworks
cd ${HOME}/frameworks || exit 1
13
14
wget --progress=dot:mega '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' -Oeclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz || exit 1
tar -zxvf ./eclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz || exit 1
15
ln -sf ${HOME}/frameworks/eclipse/eclipse ${HOME}/bin/eclipse
16
rm -f ./eclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz
17

18
if wget --progress=dot:mega 'https://www.eclipse.org/downloads/download.php?file=/titan/TITAN_Designer_and_Executor_plugin-8.1.0.zip' -OTITAN_Designer_and_Executor_plugin.zip; then
19
  eclipse/eclipse -noSplash -application org.eclipse.equinox.p2.director \
YannGarcia's avatar
YannGarcia committed
20
21
    -destination /home/etsi/frameworks/eclipse \
    -repository 'jar:file:///home/etsi/frameworks/TITAN_Designer_and_Executor_plugin.zip!/' \
22
23
24
25
    -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

26
cd ${HOME}