Whitespace support in directory names for publish.sh
[simantics/platform.git] / releng / org.simantics.sdk.build.p2.site / publish.sh
1 #!/bin/bash
2
3 if [ $# -lt 2 ]; then
4         echo "usage: $0 <eclipse-executable> <repository-directory-to-generate-p2-metadata-for>"
5         exit 1
6 fi
7
8 ECLIPSE=$1
9 REPO=$2
10
11 rm "${REPO}/artifacts.jar"
12 rm "${REPO}/content.jar"
13
14 "${ECLIPSE}" -noupdate -nosplash -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository "file:/${REPO}" -artifactRepository "file:/${REPO}" -source "${REPO}" -compress -publishArtifacts