blob: 3d5cef770e92c19d18b13d9c290a92222d7fe226 [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_williams72901652008-05-28 04:30:46 +000010 echo " Removing ${testUpdateSite}/features/"
11 rm -fr ${testUpdateSite}/features/
david_williams47f61222007-02-10 18:50:15 +000012
david_williams72901652008-05-28 04:30:46 +000013 echo " Removing ${testUpdateSite}/plugins/"
14 rm -fr ${testUpdateSite}/plugins/
david_williams47f61222007-02-10 18:50:15 +000015
16 echo " Removing index and site xml files"
david_williams72901652008-05-28 04:30:46 +000017 rm -fr ${testUpdateSite}/*
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)"
david_williams72901652008-05-28 04:30:46 +000022 rsync -pua ${HOME}/${updateToolsDir}/WebContent/${mainIndexFileName} ${testUpdateSite}/index.html
23 rsync -pua ${HOME}/${updateToolsDir}/WebContent/*.jpg ${testUpdateSite}
david_williams8015a282008-02-24 22:21:58 +000024
david_williamsdb911a72008-06-11 15:34:10 +000025./createMirrorFile.sh "${1}"
david_williams47f61222007-02-10 18:50:15 +000026
david_williamsdb911a72008-06-11 15:34:10 +000027./ant.sh -f ${fileListFile} -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
david_williams47f61222007-02-10 18:50:15 +000028
david_williams1672c662008-05-28 06:06:53 +000029echo
30echo " merge authored site.xml files with the most recent auto generated one"
david_williamsefd0ee62008-05-28 06:17:53 +000031./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${testUpdateSite}
david_williams1672c662008-05-28 06:06:53 +000032echo
david_williams47f61222007-02-10 18:50:15 +000033
david_williams843da282007-05-26 20:58:37 +000034# do create pack's later ... takes a long time
david_williamsdb911a72008-06-11 15:34:10 +000035# ./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
david_williams33b8c382007-05-25 05:41:33 +000036
david_williams843da282007-05-26 20:58:37 +000037# run create Digests now, it's a good check if all is well
david_williamsdb911a72008-06-11 15:34:10 +000038./ant.sh -f createDigests.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
david_williams60d00142008-05-28 02:32:50 +000039
40# create P2 repository metadata
david_williamsdb911a72008-06-11 15:34:10 +000041./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}