blob: 338ef0a01c9abb0c1866d0e6e524fdd54acd2d57 [file] [log] [blame]
david_williamsddcb6622007-06-28 03:26:16 +00001
2if [ "$1" != "-doit" ] ; then
3 echo " This is a dry run. Add -doit to actually remove"
4 doit="--dry-run"
5else
6 doit=""
7fi
8
david_williamsebc25332008-06-25 06:04:15 +00009export FROM_UPDATE_SITE=~/downloads/webtools/milestones
10export TO_UPDATE_SITE=~/downloads/webtools/updates_mirror
david_williams253436a2008-06-25 05:54:42 +000011
david_williams2d38b842008-06-25 06:04:14 +000012echo "Number of jars before cleaning: "
david_williamsebc25332008-06-25 06:04:15 +000013find ${FROM_UPDATE_SITE} -name "*.jar" | wc -l
david_williams668da5a2008-06-25 05:57:26 +000014
david_williams253436a2008-06-25 05:54:42 +000015./ant.sh -f createMirrorSite.xml
16
david_williamsebc25332008-06-25 06:04:15 +000017rsync $doit --delete --ignore-existing -rv ${TO_UPDATE_SITE}/plugins ${FROM_UPDATE_SITE}
david_williamsddcb6622007-06-28 03:26:16 +000018
david_williamsebc25332008-06-25 06:04:15 +000019rsync $doit --delete --ignore-existing -rv ${TO_UPDATE_SITE}/features ${FROM_UPDATE_SITE}
david_williamsddcb6622007-06-28 03:26:16 +000020
21if [ "$doit" = "--dry-run" ] ; then
22 echo " This was a dry run. Add -doit to actually remove"
david_williams2d38b842008-06-25 06:04:14 +000023else
24 echo "Number of jars after cleaning: "
david_williamsebc25332008-06-25 06:04:15 +000025 find ${FROM_UPDATE_SITE} -name "*.jar" | wc -l
david_williamsddcb6622007-06-28 03:26:16 +000026fi