blob: f1376acef32b7afa6837e061203badc1c5c53e51 [file] [log] [blame]
#!/bin/sh
# script to copy update jars from their staging area to the releases area
if [ -z "${1}" ]
then
echo ""
echo " Need an argument"
echo " Usage: ${0} <stream>"
echo " where <stream> is one of Europa, Callisto"
echo ""
exit
if [ "${2}" != "-doit" ] ; then
echo " This is a dry run. Add -doit to actually remove"
doit="--dry-run"
else
doit=""
fi
elif [ "${1}" = "Europa" ]
then
fromDir=${HOME}/downloads/webtools/declaredUpdates
toDir=${HOME}/downloads/webtools/milestones
elif [ "${1}" = "Callisto" ]
then
fromDir=${HOME}/downloads/webtools/testUpdates
toDir=${HOME}/downloads/webtools/updates
else
echo ""
echo " Unrecognized argument: ${1}"
echo " Usage: ${0} <stream>"
echo " where <stream> is one of Europa, Callisto"
echo ""
exit
fi
echo ""
echo " Copying new plugins and features "
echo " from ${fromDir}"
echo " to ${toDir}"
echo ""
rsync $doit --ignore-existing -rv ${fromDir}/features ${toDir}
rsync $doit --ignore-existing -rv ${fromDir}/plugins ${toDir}
if [ "$doit" = "--dry-run" ] ; then
echo " This was a dry run. Add -doit to actually remove"
fi