blob: 29fbaac1ee9084e19c9de9a66c84200be7f708e3 [file] [log] [blame]
#!/bin/bash
#/*******************************************************************************
# * Copyright (c) 2011 Eclipse Foundation and others.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
# * http://www.eclipse.org/legal/epl-v10.html
# *
# * Contributors:
# * Wayne Beaton (Eclipse Foundation) - Initial implementation
# *******************************************************************************/
#
usage() {
echo -e "./publish.sh [--eclipse={path}]\n Where {path} points to an Eclipse install (default ~/Eclipse/eclipse-rcp-helios-SR1-linux-gtk/eclipse/)"
}
eclipse=~/Eclipse/eclipse-rcp-helios-SR1-linux-gtk/eclipse/
for arg in $*
do
case $arg in
--eclipse=*)
user=`echo $arg | sed 's/[-a-zA-Z0-9]*=//'`
;;
--help)
usage
exit
;;
*)
source=$arg
esac
done
if [ "$source" = "" ]; then
usage
exit
fi
target=`pwd`/${source}/../publish
launcher=`find ${eclipse} -type f -name 'org.eclipse.equinox.launcher_*.jar' -print0`
java -jar ${launcher} \
-application org.eclipse.equinox.p2.publisher.UpdateSitePublisher \
-metadataRepository file:${target} \
-artifactRepository file:${target} \
-source ${source} \
-compress \
-reusePack200Files \
-publishArtifacts