| |
| #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 -p ${in_authored} ${updateSite}/site.xml |
| |
| rm ${in_newFeatures} |