blob: 6183574a1fdd306f524729eac812d705287eab92 [file] [log] [blame]
david_williamsaf4b52a2009-12-05 04:43:35 +00001#!/bin/sh
david_williamsddcb6622007-06-28 03:26:16 +00002
david_williams6b7e2752008-06-25 06:09:40 +00003source properties.shsource
4
david_williamsddcb6622007-06-28 03:26:16 +00005if [ "$1" != "-doit" ] ; then
6 echo " This is a dry run. Add -doit to actually remove"
7 doit="--dry-run"
8else
9 doit=""
10fi
11
david_williamsebc25332008-06-25 06:04:15 +000012export FROM_UPDATE_SITE=~/downloads/webtools/milestones
13export TO_UPDATE_SITE=~/downloads/webtools/updates_mirror
david_williams253436a2008-06-25 05:54:42 +000014
david_williams2d38b842008-06-25 06:04:14 +000015echo "Number of jars before cleaning: "
david_williamsebc25332008-06-25 06:04:15 +000016find ${FROM_UPDATE_SITE} -name "*.jar" | wc -l
david_williams668da5a2008-06-25 05:57:26 +000017
david_williams6b7e2752008-06-25 06:09:40 +000018./ant.sh -f createMirrorSite.xml -Declipse.home=${eclipseLocation}
david_williams253436a2008-06-25 05:54:42 +000019
david_williamsebc25332008-06-25 06:04:15 +000020rsync $doit --delete --ignore-existing -rv ${TO_UPDATE_SITE}/plugins ${FROM_UPDATE_SITE}
david_williamsddcb6622007-06-28 03:26:16 +000021
david_williamsebc25332008-06-25 06:04:15 +000022rsync $doit --delete --ignore-existing -rv ${TO_UPDATE_SITE}/features ${FROM_UPDATE_SITE}
david_williamsddcb6622007-06-28 03:26:16 +000023
24if [ "$doit" = "--dry-run" ] ; then
25 echo " This was a dry run. Add -doit to actually remove"
david_williams2d38b842008-06-25 06:04:14 +000026else
27 echo "Number of jars after cleaning: "
david_williamsebc25332008-06-25 06:04:15 +000028 find ${FROM_UPDATE_SITE} -name "*.jar" | wc -l
david_williamsddcb6622007-06-28 03:26:16 +000029fi