summaryrefslogtreecommitdiff
path: root/schulung_tools/layer-building/yocto/get-full-eclipse-mirror.sh
blob: 28df8402035af17289ca97123073ff11034e518d (plain)
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
#!/bin/sh
set -x
set -e

test -w /opt/mirrors || exit 1

YOCTO_VERS="2.6.1"

ECL="/opt/eclipse/eclipse -nosplash -verbose -application"

AM="$EARGS org.eclipse.equinox.p2.metadata.repository.mirrorApplication"
AA="$EARGS org.eclipse.equinox.p2.artifact.repository.mirrorApplication"

P1="download.eclipse.org/releases/oxygen"
P2="download.eclipse.org/tm/updates/4.0"
P3="downloads.yoctoproject.org/releases/eclipse-plugin/$YOCTO_VERS/oxygen"

go()
{
	$ECL $AM -source http://$1 -destination file:/opt/mirrors/$1
	$ECL $AA -source http://$1 -destination file:/opt/mirrors/$1
}

go $P1
go $P2
go $P3