blob: 172eaa7cf9d0e154937a6dae863cad32e2d98663 [file] [log] [blame]
david_williamsed5201c2007-05-27 05:48:38 +00001
david_williams30fcdae2006-08-16 07:11:21 +00002#set variables
david_williamsed5201c2007-05-27 05:48:38 +00003
4
david_williams66bb9362007-05-27 02:25:50 +00005updateSiteFile=${1}
6updateSite=${2}
david_williams264285e2007-02-10 02:22:04 +00007
david_williamsed5201c2007-05-27 05:48:38 +00008source properties.shsource
david_williams264285e2007-02-10 02:22:04 +00009
david_williams8a62f0d2006-06-28 05:07:27 +000010
david_williams47f61222007-02-10 18:50:15 +000011# save away a clean version of this site file, produced during mirroring commands,
12# with all the latest version numbers
david_williams66bb9362007-05-27 02:25:50 +000013mv ${updateSite}/site.xml ${updateSite}/.site.xml
david_williams8a62f0d2006-06-28 05:07:27 +000014
15
16# merge authored site.xml with the autogenerated one
david_williams8a62f0d2006-06-28 05:07:27 +000017
david_williamsed5201c2007-05-27 05:48:38 +000018in_authored=${HOME}/${updateToolsDir}/WebContent/${updateSiteFile}
19# remember, this 'site.xml' is just the output of mirror command, when ran in context
20in_newFeatures=${updateSite}/.site.xml
21
22# merges newFeautes in to authored, back in original locaion
23java -jar siteFileUpdater.jar ${in_authored} ${in_newFeatures}
24
25# copy to discovery site
26# Note: here we are changing names from site specific site file name, to generic site.xml
david_williams2fec6312007-05-27 06:24:24 +000027rsync -p ${in_authored} ${updateSite}/site.xml
david_williamsed5201c2007-05-27 05:48:38 +000028
29rm ${in_newFeatures}