blob: c155e7e4756214a1bfc370587a4c37a567defd58 (
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.6/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
|