blob: 5e5a89e646b8563fc6ff2c1a30dde2bc8299e157 [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_williams5ab9cb72007-05-26 21:49:55 +00005
6
7
david_williamsaa7d3b82007-05-26 20:43:31 +00008if [ -z "${1}" ]
9then
david_williams8a62f0d2006-06-28 05:07:27 +000010
david_williamsaa7d3b82007-05-26 20:43:31 +000011echo ""
12echo " Need an argument"
13echo " Usage: ${0} <stream>"
14echo " where <stream> is one of Europa, Callisto"
15echo ""
16exit
17
david_williams5ab9cb72007-05-26 21:49:55 +000018
david_williamsaabef0a2007-05-26 20:52:44 +000019
20
david_williamsaa7d3b82007-05-26 20:43:31 +000021elif [ "${1}" = "Europa" ]
22then
23 fromDir=${HOME}/downloads/webtools/declaredUpdates
24 toDir=${HOME}/downloads/webtools/milestones
25
26elif [ "${1}" = "Callisto" ]
27then
28 fromDir=${HOME}/downloads/webtools/testUpdates
29 toDir=${HOME}/downloads/webtools/updates
30
31else
32 echo ""
33 echo " Unrecognized argument: ${1}"
34 echo " Usage: ${0} <stream>"
35 echo " where <stream> is one of Europa, Callisto"
36 echo ""
37 exit
38fi
39
david_williams5ab9cb72007-05-26 21:49:55 +000040
41if [ "${2}" != "-doit" ] ; then
42 echo ""
43 echo " This is a dry run. Add -doit to actually copy"
44 echo ""
45 doit="--dry-run"
46else
47 doit=""
48fi
49
david_williamsaa7d3b82007-05-26 20:43:31 +000050echo ""
51echo " Copying new plugins and features "
52echo " from ${fromDir}"
53echo " to ${toDir}"
54echo ""
55
david_williams5ab9cb72007-05-26 21:49:55 +000056rsync ${doit} --ignore-existing -rv ${fromDir}/features ${toDir}
57rsync ${doit} --ignore-existing -rv ${fromDir}/plugins ${toDir}
david_williamsaabef0a2007-05-26 20:52:44 +000058
david_williams5ab9cb72007-05-26 21:49:55 +000059if [ "${doit}" = "--dry-run" ] ; then
60 echo " This was a dry run. Add -doit to actually copy"
david_williamsaabef0a2007-05-26 20:52:44 +000061fi
62
63
david_williams8a62f0d2006-06-28 05:07:27 +000064