blob: b4e944d4266c3856d367f45402be9be0b9cec8c5 [file] [log] [blame]
#!/bin/sh
# script to run update, setting properties, for all projects
source properties.shsource
source parseSiteArg.shsource
if [ "${2}" == "-clean" ] ; then
echo " Removing ${testUpdateSite}/features/"
rm -fr ${testUpdateSite}/features/
echo " Removing ${testUpdateSite}/plugins/"
rm -fr ${testUpdateSite}/plugins/
echo " Removing index and site xml files"
rm -fr ${testUpdateSite}/*
fi
echo " Updating index and web site files, but not site xml files (yet)"
rsync -pua ${HOME}/${updateToolsDir}/WebContent/${mainIndexFileName} ${testUpdateSite}/index.html
rsync -pua ${HOME}/${updateToolsDir}/WebContent/*.jpg ${testUpdateSite}
./createMirrorFile.sh "${1}" "/shared/webtools/committers/wtp-R3.0-R/20080611172140/R-3.0-20080611172140/updateSite"
if [ "$?" -ne "0" ]
then
exit $?
fi
./ant.sh -f ${fileListFile} -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
echo
echo " merge authored site.xml files with the most recent auto generated one"
echo " mainSiteFileName: " ${mainSiteFileName}
echo " testUpdateSite: " ${testUpdateSite}
./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${testUpdateSite}
echo
# do create pack's later ... takes a long time
# ./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
# run create Digests now, it's a good check if all is well
./ant.sh -f createDigests.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
# create P2 repository metadata
./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}