blob: a2c13b02eb5bb512fbe6b93501038501fd76c13d [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
david_williamsed5201c2007-05-27 05:48:38 +00005source properties.shsource
david_williams2b925b12007-05-27 06:38:35 +00006source parseSiteArg.shsource
david_williamsed5201c2007-05-27 05:48:38 +00007
david_williams2b925b12007-05-27 06:38:35 +00008if [ "${2}" == "-clean" ] ; then
david_williams47f61222007-02-10 18:50:15 +00009
david_williams843da282007-05-26 20:58:37 +000010 echo " Removing ${updateSite}/features/"
david_williamsc4104a92007-05-27 03:50:35 +000011 rm -fr ${updateSite}/features/
david_williams47f61222007-02-10 18:50:15 +000012
david_williams843da282007-05-26 20:58:37 +000013 echo " Removing ${updateSite}/plugins/"
david_williamsc4104a92007-05-27 03:50:35 +000014 rm -fr ${updateSite}/plugins/
david_williams47f61222007-02-10 18:50:15 +000015
16 echo " Removing index and site xml files"
david_williams843da282007-05-26 20:58:37 +000017 rm -fr ${updateSite}/*
david_williams8015a282008-02-24 22:21:58 +000018
david_williams843da282007-05-26 20:58:37 +000019fi
david_williams8015a282008-02-24 22:21:58 +000020
21 echo " Updating index and web site files, but not site xml files (yet)"
22 rsync -pua ${HOME}/${updateToolsDir}/WebContent/${mainIndexFileName} ${updateSite}/index.html
23 rsync -pua ${HOME}/${updateToolsDir}/WebContent/*.jpg ${updateSite}
24
david_williams47f61222007-02-10 18:50:15 +000025
26
david_williams93292562007-05-27 06:19:42 +000027ant -f ${fileListFile} -Declipse.home=${eclipseLocation} -Dupdate.site=${updateSite}
david_williams47f61222007-02-10 18:50:15 +000028
david_williams843da282007-05-26 20:58:37 +000029# merge authored site.xml files with the most recent auto generated one
30./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${updateSite}
david_williams47f61222007-02-10 18:50:15 +000031
david_williams843da282007-05-26 20:58:37 +000032# do create pack's later ... takes a long time
david_williamsed5201c2007-05-27 05:48:38 +000033# ant -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${updateSite}
david_williams33b8c382007-05-25 05:41:33 +000034
david_williams843da282007-05-26 20:58:37 +000035# run create Digests now, it's a good check if all is well
david_williams2fec6312007-05-27 06:24:24 +000036ant -f createDigests.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${updateSite}
david_williams60d00142008-05-28 02:32:50 +000037
38# create P2 repository metadata
39ant -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${updateSite}