blob: 3eb5faf941ac91e6921fbfd534ba9bc2cfcb5278 [file] [log] [blame]
#!/bin/sh
# script to update site xml files, by merging new features from "mirror" command, with old "authored" content.
main_name=${1}
updateSite=${2}
updateToolsDir=org.eclipse.wtp.releng.webupdatesite
in_authored=${HOME}/${updateToolsDir}/WebContent/${main_name}
# remember, this 'site.xml' is just the output of mirror command, when ran in context
in_newFeatures=${updateSite}/.site.xml
# merges newFeautes in to authored, back in original locaion
java -jar siteFileUpdater.jar ${in_authored} ${in_newFeatures}
# copy to discovery site
# Note: here we are changing names from site specific site file name, to generic site.xml
rsync -v -p ${in_authored} ${updateSite}/site.xml
rm ${in_newFeatures}