blob: abf9ccb6f37d1c1e55f3aa222c42407b1b82406f [file] [log] [blame]
david_williams11ee9f62007-02-11 07:15:48 +00001#!/bin/sh
2
3# script to run update, setting properties, for all projects
4
5updateToolsDir=org.eclipse.wtp.releng.webupdatesite
6
david_williams51d536a2007-05-27 02:35:12 +00007updateSite=${HOME}/downloads/webtools/testEnablingFeatures
david_williams11ee9f62007-02-11 07:15:48 +00008
david_williams51d536a2007-05-27 02:35:12 +00009eclipseLocation=${HOME}/eclipse-ppc-33M5
david_williams11ee9f62007-02-11 07:15:48 +000010
11mainSiteFileName=siteEnabling.xml
12
david_williamsc4104a92007-05-27 03:50:35 +000013if [ "${1}" == "-clean" ] ; then
david_williams11ee9f62007-02-11 07:15:48 +000014
david_williamsc4104a92007-05-27 03:50:35 +000015 echo " Removing ${updateSite}/features/"
16 rm -fr ${updateSite}/features/
david_williams11ee9f62007-02-11 07:15:48 +000017
david_williamsc4104a92007-05-27 03:50:35 +000018 echo " Removing ${updateSite}/plugins/"
19 rm -fr ${updateSite}/plugins/
david_williams11ee9f62007-02-11 07:15:48 +000020
21 echo " Removing index and site xml files"
david_williamsc4104a92007-05-27 03:50:35 +000022 rm -fr ${updateSite}/*
david_williams11ee9f62007-02-11 07:15:48 +000023
24 echo " Updating index and web site files, but not site xml files (yet)"
david_williamsc4104a92007-05-27 03:50:35 +000025 rsync -v -p ${HOME}/${updateToolsDir}/WebContent/index.html ${updateSite}
26 rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.jpg ${updateSite}
27 rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.gif ${updateSite}
28fi
david_williams11ee9f62007-02-11 07:15:48 +000029
30
david_williamsc4104a92007-05-27 03:50:35 +000031ant -f updateEnablingMirrorAll.xml -DeclipseLocation=${eclipseLocation} -DlocalUpdateSitePath=${updateSite}
david_williams11ee9f62007-02-11 07:15:48 +000032
david_williamsc4104a92007-05-27 03:50:35 +000033# merge authored site.xml files with the most recent auto generated one
34./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${updateSite}
david_williams11ee9f62007-02-11 07:15:48 +000035
david_williamsc4104a92007-05-27 03:50:35 +000036# do create pack's later ... takes a long time
37# ant -f createPack200s.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite}
38
39ant -f createDigests.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite} -DmainSiteFileName=${mainSiteFileName}
david_williams11ee9f62007-02-11 07:15:48 +000040