blob: b0883defb61c19c1f8dfee1ba3b91cd21349d77b [file] [log] [blame]
#!/bin/sh
# script to run update, setting properties, for all projects
# main entry point for Callisto update
updateSite=${HOME}/downloads/webtools/testUpdates
mainSiteFileName=siteWTPCallisto.xml
updateToolsDir=org.eclipse.wtp.releng.webupdatesite
source eclipseLocation.shsource
if [ "${1}" == "-clean" ] ; then
echo " Removing ${updateSite}/features/"
rm -fr ${updateSite}/features/
echo " Removing ${updateSite}/plugins/"
rm -fr ${updateSite}/plugins/
echo " Removing index and site xml files"
rm -fr ${updateSite}/*
echo " Updating index and web site files, but not site xml files (yet)"
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/index.html ${updateSite}/index.html
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.jpg ${updateSite}
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.gif ${updateSite}
fi
ant -f updateCallistoMirrorAll.xml -Declipse.home=${eclipseLocation} -DlocalUpdateSitePath=${updateSite}
# merge authored site.xml files with the most recent auto generated one
./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${updateSite}
#ant -f createPack200s.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite}
# run create Digests now, it's a good check if all is well
ant -f createDigests.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite} -DmainSiteFileName=${mainSiteFileName}