Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
runUpdateAllEuropaProjects.sh 1.36 KiB
#!/bin/sh

# script to run update, setting properties, for all projects

updateToolsDir=org.eclipse.wtp.releng.webupdatesite

updateSite=${HOME}/downloads/webtools/declaredUpdates
 
source eclipseLocation.shsource

mainSiteFileName=siteEuropa.xml

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)"
	    cp ${HOME}/${updateToolsDir}/WebContent/indexEuropa.html  ${updateSite}/index.html
	    cp ${HOME}/${updateToolsDir}/WebContent/*.jpg  ${updateSite} > /dev/null
	    cp ${HOME}/${updateToolsDir}/WebContent/*.gif  ${updateSite} > /dev/null
fi


ant  -f updateEuropaMirrorAll.xml -Declipse.home=${eclipseLocation} -DlocalUpdateSitePath=${updateSite}

# merge authored site.xml files with the most recent auto generated one
./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${updateSite}

# do create pack's later ... takes a long time
# 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=site.xml