blob: 0f0eac92480bb68a26e6b0af62c61d5860f8a16b [file] [log] [blame]
david_williams47f61222007-02-10 18:50:15 +00001#!/bin/sh
2
3# script to run update, setting properties, for all projects
4
5updateToolsDir=org.eclipse.wtp.releng.webupdatesite
6
david_williams843da282007-05-26 20:58:37 +00007updateSite=${HOME}/downloads/webtools/declaredUpdates
david_williams47f61222007-02-10 18:50:15 +00008
david_williams843da282007-05-26 20:58:37 +00009eclipseLocation=${HOME}/eclipse-ppc-33M7
david_williams47f61222007-02-10 18:50:15 +000010
david_williamsbdfdc5f2007-02-11 06:54:55 +000011mainSiteFileName=siteEuropa.xml
david_williams47f61222007-02-10 18:50:15 +000012
david_williams843da282007-05-26 20:58:37 +000013if [ "${1}" == "-clean" ] ; then
david_williams47f61222007-02-10 18:50:15 +000014
david_williams843da282007-05-26 20:58:37 +000015 echo " Removing ${updateSite}/features/"
david_williams47f61222007-02-10 18:50:15 +000016 rm -fr $updateSite/features/
17
david_williams843da282007-05-26 20:58:37 +000018 echo " Removing ${updateSite}/plugins/"
david_williams47f61222007-02-10 18:50:15 +000019 rm -fr $updateSite/plugins/
20
21 echo " Removing index and site xml files"
david_williams843da282007-05-26 20:58:37 +000022 rm -fr ${updateSite}/*
david_williams47f61222007-02-10 18:50:15 +000023
24 echo " Updating index and web site files, but not site xml files (yet)"
david_williams843da282007-05-26 20:58:37 +000025 cp ${HOME}/${updateToolsDir}/WebContent/index.html ${updateSite}
26 cp ${HOME}/${updateToolsDir}/WebContent/*.jpg ${updateSite} > /dev/null
27 cp ${HOME}/${updateToolsDir}/WebContent/*.gif ${updateSite} > /dev/null
28 cp -r ${HOME}/${updateToolsDir}/WebContent/web ${updateSite} > /dev/null
david_williams47f61222007-02-10 18:50:15 +000029
david_williams843da282007-05-26 20:58:37 +000030fi
david_williams47f61222007-02-10 18:50:15 +000031
32
david_williams843da282007-05-26 20:58:37 +000033ant -f updateEuropaMirrorAll.xml -Declipse.home=${eclipseLocation} -DlocalUpdateSitePath=${updateSite}
david_williams47f61222007-02-10 18:50:15 +000034
david_williams843da282007-05-26 20:58:37 +000035# merge authored site.xml files with the most recent auto generated one
36./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${updateSite}
david_williams47f61222007-02-10 18:50:15 +000037
david_williams843da282007-05-26 20:58:37 +000038# do create pack's later ... takes a long time
39# ant -f createPack200s.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite}
david_williams33b8c382007-05-25 05:41:33 +000040
david_williams843da282007-05-26 20:58:37 +000041# run create Digests now, it's a good check if all is well
42ant -f createDigests.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite} -DmainSiteFileName=${mainSiteFileName}