blob: f1376acef32b7afa6837e061203badc1c5c53e51 [file] [log] [blame]
david_williams8a62f0d2006-06-28 05:07:27 +00001#!/bin/sh
2
3# script to copy update jars from their staging area to the releases area
4
david_williamsaa7d3b82007-05-26 20:43:31 +00005if [ -z "${1}" ]
6then
david_williams8a62f0d2006-06-28 05:07:27 +00007
david_williamsaa7d3b82007-05-26 20:43:31 +00008echo ""
9echo " Need an argument"
10echo " Usage: ${0} <stream>"
11echo " where <stream> is one of Europa, Callisto"
12echo ""
13exit
14
david_williamsaabef0a2007-05-26 20:52:44 +000015if [ "${2}" != "-doit" ] ; then
16 echo " This is a dry run. Add -doit to actually remove"
17 doit="--dry-run"
18else
19 doit=""
20fi
21
22
david_williamsaa7d3b82007-05-26 20:43:31 +000023elif [ "${1}" = "Europa" ]
24then
25 fromDir=${HOME}/downloads/webtools/declaredUpdates
26 toDir=${HOME}/downloads/webtools/milestones
27
28elif [ "${1}" = "Callisto" ]
29then
30 fromDir=${HOME}/downloads/webtools/testUpdates
31 toDir=${HOME}/downloads/webtools/updates
32
33else
34 echo ""
35 echo " Unrecognized argument: ${1}"
36 echo " Usage: ${0} <stream>"
37 echo " where <stream> is one of Europa, Callisto"
38 echo ""
39 exit
40fi
41
42echo ""
43echo " Copying new plugins and features "
44echo " from ${fromDir}"
45echo " to ${toDir}"
46echo ""
47
david_williamsaabef0a2007-05-26 20:52:44 +000048rsync $doit --ignore-existing -rv ${fromDir}/features ${toDir}
49rsync $doit --ignore-existing -rv ${fromDir}/plugins ${toDir}
50
51if [ "$doit" = "--dry-run" ] ; then
52 echo " This was a dry run. Add -doit to actually remove"
53fi
54
55
david_williams8a62f0d2006-06-28 05:07:27 +000056