-
Notifications
You must be signed in to change notification settings - Fork 20
/
update_target.sh
executable file
·29 lines (22 loc) · 1.14 KB
/
update_target.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
#set -o xtrace
export ECLIPSE_PLATFORM_ARCHIVE=eclipse-platform-4.22-linux-gtk-x86_64.tar.gz
export ECLIPSE_PLATFORM_URL="https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.22-202111241800/eclipse-platform-4.22-linux-gtk-x86_64.tar.gz&r=1"
if [[ ! -d eclipse ]]
then
rm -rf $ECLIPSE_PLATFORM_ARCHIVE
echo "Downloading eclipse platform..."
wget -nv -O $ECLIPSE_PLATFORM_ARCHIVE "$ECLIPSE_PLATFORM_URL"
echo "Extracting eclipse platform..."
tar -xzf $ECLIPSE_PLATFORM_ARCHIVE
echo "Installing TPD tool in eclipse platform..."
./eclipse/eclipse -nosplash -application org.eclipse.equinox.p2.director \
-repository http://download.eclipse.org/cbi/tpd/3.0.0-SNAPSHOT/,http://download.eclipse.org/releases/2022-06/ \
-destination ./eclipse/ \
-installIU org.eclipse.cbi.targetplatform-feature.feature.group
else
echo "Eclipse platform already installed, skipping platform download"
fi
echo "Updating gemoc_studio.target from gemoc_studio.tpd definition..."
#use eclipse app to update the target
./eclipse/eclipse -nosplash -application org.eclipse.cbi.targetplatform.tpd.converter gemoc_studio.tpd