summaryrefslogtreecommitdiffstats
path: root/genRepo.sh
blob: 6fc92dabf46ca992a7c188580d51055e19746f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

prefix=$ROOT_PREFIX
sdk=$1'-sdk'
launcher=$1'-launcher'
repo=$1

tycho_bundles_external=/usr/share/java/tycho/tycho-bundles-external.zip

# use the bundled equinox launcher to publish the p2 repo
mkdir -p $launcher
pushd $launcher
unzip $tycho_bundles_external

java -jar eclipse/plugins/org.eclipse.equinox.launcher_*.jar -nosplash -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
-metadataRepository file:$repo \
-artifactRepository file:$repo \
-source $sdk \
-compress -append -publishArtifacts

popd

rm -rf $sdk $launcher