Permalink
Browse files

Added script for producing a p2 repository for the toolchain

  • Loading branch information...
1 parent 89f293d commit b09b5d0c06eb78d07bddfd77b74d7e0ac3d5f3fe @dotta dotta committed Mar 21, 2012
Showing with 29 additions and 0 deletions.
  1. +29 −0 org.scala-ide.build-toolchain/p2-build-toolchain.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+. $(dirname $0)/build-toolchain-2.9.sh
+
+REPO_NAME=p2-osgi-toolchain
+SOURCE=`pwd`/target
+PLUGINS=${SOURCE}/plugins
+REPO=file:${SOURCE}/${REPO_NAME}
+
+mkdir -p $SOURCE
+rm -Rf ${SOURCE}
+mkdir -p ${PLUGINS}
+
+cp ../org.scala-ide.scala.compiler/target/org.scala-ide.scala.compiler*.jar ${PLUGINS}
+cp ../org.scala-ide.scala.library/target/org.scala-ide.scala.library*.jar ${PLUGINS}
+cp ../org.scala-ide.sbt.full.library/target/org.scala-ide.sbt.full.library*jar ${PLUGINS}
+
+eclipse \
+-debug \
+-consolelog \
+-nosplash \
+-verbose \
+-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
+-metadataRepository ${REPO} \
+-artifactRepository ${REPO} \
+-source ${SOURCE} \
+-compress \
+-publishArtifacts
+

0 comments on commit b09b5d0

Please sign in to comment.