blob: efb64723fb4d36753e2055a3923e02439c802860 [file] [log] [blame]
#set variables
updateSiteFile=${1}
updateSite=${2}
source properties.shsource
# save away a clean version of this site file, produced during mirroring commands,
# with all the latest version numbers
mv ${updateSite}/site.xml ${updateSite}/.site.xml
# merge authored site.xml with the autogenerated one
in_authored=${HOME}/${updateToolsDir}/WebContent/${updateSiteFile}
# 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}