blob: b93f6bd6269ce919bb7b7f40fdf1a758c8d08c08 [file] [log] [blame]
david_williams8a62f0d2006-06-28 05:07:27 +00001#!/bin/sh
2
3# script to run update, setting properties, for all projects
4
david_williams47f61222007-02-10 18:50:15 +00005# main entry point for Callisto update
6updateSite=$HOME/downloads/webtools/testUpdates
david_williamsf7639882007-02-11 05:15:28 +00007mainSiteFileName=siteWTPCallisto.xml
david_williams47f61222007-02-10 18:50:15 +00008
david_williams8a62f0d2006-06-28 05:07:27 +00009updateToolsDir=org.eclipse.wtp.releng.webupdatesite
10
david_williams47f61222007-02-10 18:50:15 +000011
david_williams8a62f0d2006-06-28 05:07:27 +000012
david_williams90c7dee2007-05-05 06:59:07 +000013eclipseLocation=$HOME/eclipse-ppc-33M6
david_williams8a62f0d2006-06-28 05:07:27 +000014
15
16
17 if [ "$1" == "-clean" ] ; then
18
19 echo " Removing $updateSite/features/"
20 rm -fr $updateSite/features/
21
22 echo " Removing $updateSite/plugins/"
23 rm -fr $updateSite/plugins/
24
25 echo " Removing index and site xml files"
26 rm -fr $updateSite/*
27
28 echo " Updating index and web site files, but not site xml files (yet)"
29 cp $HOME/$updateToolsDir/WebContent/index.html $updateSite
30 cp $HOME/$updateToolsDir/WebContent/*.jpg $updateSite > /dev/null
31 cp $HOME/$updateToolsDir/WebContent/*.gif $updateSite > /dev/null
32 cp -r $HOME/$updateToolsDir/WebContent/web $updateSite > /dev/null
33
34 fi
35
36
david_williams90c7dee2007-05-05 06:59:07 +000037 ant -f updateCallistoMirrorAll.xml -Declipse.home=$eclipseLocation -DlocalUpdateSitePath=$updateSite
david_williams8a62f0d2006-06-28 05:07:27 +000038
39 # merge authored site.xml files with the most recent auto generated one
david_williamsf7639882007-02-11 05:15:28 +000040 ./runUpdateSiteXmlFiles.sh $mainSiteFileName $updateSite
david_williams8a62f0d2006-06-28 05:07:27 +000041
david_williams90c7dee2007-05-05 06:59:07 +000042 #ant -f createPack200s.xml -Declipse.home=$eclipseLocation -DupdateSite=$updateSite
43 #ant -f createDigests.xml -Declipse.home=$eclipseLocation -DupdateSite=$updateSite -DmainSiteFileName=$mainSiteFileName
david_williamsf7639882007-02-11 05:15:28 +000044
david_williams8a62f0d2006-06-28 05:07:27 +000045