summaryrefslogtreecommitdiffstats
path: root/genRepo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'genRepo.sh')
-rwxr-xr-xgenRepo.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/genRepo.sh b/genRepo.sh
new file mode 100755
index 0000000..6fc92da
--- /dev/null
+++ b/genRepo.sh
@@ -0,0 +1,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