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

test -w /opt/mirrors || exit 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/2.5.1/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