blob: a717503463cc8e4d39bc9bd9644d2c5966ca28cd [file] [log] [blame]
#!/bin/sh
#*******************************************************************************
# Copyright (c) 2007, 2019 IBM Corporation and others.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# IBM Corporation - initial API and implementation
#*******************************************************************************
# script to copy update jars from their staging area to the releases area
source ./parseSiteArg.shsource
if [ "${2}" != "-doit" ] ; then
echo ""
echo " This is a dry run. Add -doit to actually copy"
echo ""
doit="--dry-run"
else
doit=""
fi
echo ""
echo " Copying new plugins and features "
echo " from ${milestoneDirectory}"
echo " to ${releaseDir}"
echo ""
rsync ${doit} --ignore-existing -rv -p ${milestoneDirectory}/features ${releaseDir}
rsync ${doit} --ignore-existing -rv -p ${milestoneDirectory}/plugins ${releaseDir}
if [ "${doit}" = "--dry-run" ] ; then
echo ""
echo " This was a dry run. Add -doit to actually copy"
echo ""
fi