Skip to content
Snippets Groups Projects
Commit c4104a9e authored by david_williams's avatar david_williams
Browse files

small improvements

parent ea054dae
No related branches found
No related tags found
No related merge requests found
Showing
with 48 additions and 91 deletions
......@@ -5,19 +5,20 @@
source ./parseSiteArg.shsource
# important: make sure digest is updated same time as site.xml's
# TODO: digest should be recreated on final site?
cp -f -p -r -v --update ${fromDir}/digest.zip --target-directory=${toDir}/
# TODO: should digest be recreated on final site? No for "exact" sites, yes, if "merged" sites.
rsync -v -p ${fromDir}/digest.zip ${toDir}
cp -f -p -r -v --update ${fromDir}/*html --target-directory=${toDir}/
cp -f -p -r -v --update ${fromDir}/*.gif --target-directory=${toDir}/
cp -f -p -r -v --update ${fromDir}/web --target-directory=${toDir}/ 2>/dev/null
cp -f -p -r -v --update ${fromDir}/*.xml --target-directory=${toDir}/
rsync -v -p ${fromDir}/*.html ${toDir}
rsync -v -p ${fromDir}/*.gif ${toDir}
rsync -v -p ${fromDir}/*.jpg ${toDir}
rsync -v -p ${fromDir}/*.xml ${toDir}
# Typically, as of this writing
# Europa: 'declaredUpdates' to 'milestones'
# Callisto: 'testUpdates' to 'updates'
# compute last segment in directory names, as a heurisic to update internal URL links
fromLastSegment=${fromDir##*/}
toLastSegment=${toDir##*/}
......@@ -28,7 +29,7 @@ echo " to: ${toLastSegment}"
echo ""
fromString="webtools/${fromLastSegment}"
toString="webtools/$toLastSegment"
toString="webtools/${toLastSegment}"
replaceCommand="s!${fromString}!${toString}!g"
#echo ${replaceCommand};
......
......@@ -22,8 +22,8 @@ echo " from ${fromDir}"
echo " to ${toDir}"
echo ""
rsync ${doit} --ignore-existing -rv ${fromDir}/features ${toDir}
rsync ${doit} --ignore-existing -rv ${fromDir}/plugins ${toDir}
rsync ${doit} --ignore-existing -rv -p ${fromDir}/features ${toDir}
rsync ${doit} --ignore-existing -rv -p ${fromDir}/plugins ${toDir}
if [ "${doit}" = "--dry-run" ] ; then
echo ""
......
......@@ -10,5 +10,5 @@ mainSiteFileName=site.xml
source eclipseLocation.shsource
ant -f createDigests.xml -Declipse.home=$eclipseLocation -DupdateSite=$updateSite -DmainSiteFileName=$mainSiteFileName
ant -f createDigests.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite} -DmainSiteFileName=${mainSiteFileName}
......@@ -7,5 +7,5 @@ updateSite=${HOME}/downloads/webtools/testUpdates
source eclipseLocation.shsource
ant -f createPack200s.xml -Declipse.home=$eclipseLocation -DupdateSite=$updateSite
ant -f createPack200s.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite}
......@@ -10,31 +10,31 @@ eclipseLocation=${HOME}/eclipse-ppc-33M5
mainSiteFileName=siteEnabling.xml
if [ "$1" == "-clean" ] ; then
if [ "${1}" == "-clean" ] ; then
echo " Removing $updateSite/features/"
rm -fr $updateSite/features/
echo " Removing ${updateSite}/features/"
rm -fr ${updateSite}/features/
echo " Removing $updateSite/plugins/"
rm -fr $updateSite/plugins/
echo " Removing ${updateSite}/plugins/"
rm -fr ${updateSite}/plugins/
echo " Removing index and site xml files"
rm -fr $updateSite/*
rm -fr ${updateSite}/*
echo " Updating index and web site files, but not site xml files (yet)"
cp ${HOME}/$updateToolsDir/WebContent/index.html $updateSite
cp ${HOME}/$updateToolsDir/WebContent/*.jpg $updateSite > /dev/null
cp ${HOME}/$updateToolsDir/WebContent/*.gif $updateSite > /dev/null
cp -r ${HOME}/$updateToolsDir/WebContent/web $updateSite > /dev/null
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/index.html ${updateSite}
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.jpg ${updateSite}
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.gif ${updateSite}
fi
fi
ant -f updateEnablingMirrorAll.xml -DeclipseLocation=${eclipseLocation} -DlocalUpdateSitePath=${updateSite}
ant -f updateEnablingMirrorAll.xml -DeclipseLocation=$eclipseLocation -DlocalUpdateSitePath=$updateSite
# merge authored site.xml files with the most recent auto generated one
./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${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}
ant -f createPack200s.xml -Declipse.home=$eclipseLocation -DupdateSite=$updateSite
ant -f createDigests.xml -Declipse.home=$eclipseLocation -DupdateSite=$updateSite -DmainSiteFileName=$mainSiteFileName
ant -f createDigests.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite} -DmainSiteFileName=${mainSiteFileName}
......@@ -13,18 +13,18 @@ mainSiteFileName=siteEuropa.xml
if [ "${1}" == "-clean" ] ; then
echo " Removing ${updateSite}/features/"
rm -fr $updateSite/features/
rm -fr ${updateSite}/features/
echo " Removing ${updateSite}/plugins/"
rm -fr $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
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/indexEuropa.html ${updateSite}/index.html
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.jpg ${updateSite}
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.gif ${updateSite}
fi
......
......@@ -10,7 +10,7 @@ updateToolsDir=org.eclipse.wtp.releng.webupdatesite
source eclipseLocation.shsource
if [ "$1" == "-clean" ] ; then
if [ "${1}" == "-clean" ] ; then
echo " Removing ${updateSite}/features/"
rm -fr ${updateSite}/features/
......@@ -22,18 +22,16 @@ if [ "$1" == "-clean" ] ; then
rm -fr ${updateSite}/*
echo " Updating index and web site files, but not site xml files (yet)"
cp ${HOME}/${updateToolsDir}/WebContent/index.html ${updateSite}
cp ${HOME}/${updateToolsDir}/WebContent/*.jpg ${updateSite} > /dev/null
cp ${HOME}/${updateToolsDir}/WebContent/*.gif ${updateSite} > /dev/null
cp -r ${HOME}/${updateToolsDir}/WebContent/web ${updateSite} > /dev/null
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/index.html ${updateSite}/index.html
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.jpg ${updateSite}
rsync -v -p ${HOME}/${updateToolsDir}/WebContent/*.gif ${updateSite}
fi
ant -f updateCallistoMirrorAll.xml -Declipse.home=${eclipseLocation} -DlocalUpdateSitePath=${updateSite}
# merge authored site.xml files with the most recent auto generated one
./runUpdateSiteXmlFiles.sh $mainSiteFileName ${updateSite}
./runUpdateSiteXmlFiles.sh ${mainSiteFileName} ${updateSite}
#ant -f createPack200s.xml -Declipse.home=${eclipseLocation} -DupdateSite=${updateSite}
......
......@@ -5,19 +5,19 @@
#updateSite=${HOME}/downloads/webtools/testUpdates
updateSite=${HOME}/downloads/webtools/declaredUpdates
echo "update site: $updateSite"
echo "update site: ${updateSite}"
eclipseLocation=${HOME}/eclipse-ppc-33M5
project="$1"
if [ "$project" != "" ]
project="${1}"
if [ "${project}" != "" ]
then
ant -f features-$project.xml -DeclipseLocation=$eclipseLocation -DlocalUpdateSitePath=$updateSite -Dosgi.arch=ppc -Dosgi.clean -Dosgi.debug=true -Declipse.consoleLog=true -DcontinueOnError=true
ant -f features-${project}.xml -DeclipseLocation=${eclipseLocation} -DlocalUpdateSitePath=${updateSite} -Dosgi.arch=ppc -Dosgi.clean -Dosgi.debug=true -Declipse.consoleLog=true -DcontinueOnError=true
else
echo " Usage: $0 <project> (where project is wtp, jsf, or jpa)"
echo " Usage: ${0} <project> (where project is wtp, jsf, or jpa)"
fi
......@@ -13,5 +13,8 @@ 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
cp ${in_authored} ${updateSite}/site.xml
# 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}
currentTarget=/home/data/httpd/download.eclipse.org/webtools/testUpdates/features/
echo $currentTarget > allUpdates.txt
ls $currentTarget >> allUpdates.txt
currentTarget=/home/data/httpd/download.eclipse.org/webtools/testUpdates/plugins/
echo $currentTarget >> allUpdates.txt
ls $currentTarget >> allUpdates.txt
currentTarget=/home/data/httpd/download.eclipse.org/eclipse/updates/3.1/features/
echo $currentTarget >> allUpdates.txt
ls $currentTarget >> allUpdates.txt
currentTarget=/home/data/httpd/download.eclipse.org/eclipse/updates/3.1/plugins/
echo $currentTarget >> allUpdates.txt
ls $currentTarget >> allUpdates.txt
currentTarget=/home/data/httpd/download.eclipse.org/eclipse/updates/3.0/features/
echo $currentTarget >> allUpdates.txt
ls $currentTarget >> allUpdates.txt
currentTarget=/home/data/httpd/download.eclipse.org/eclipse/updates/3.0/plugins/
echo $currentTarget >> allUpdates.txt
ls $currentTarget >> allUpdates.txt
currentTarget=/home/data/httpd/download.eclipse.org/tools/emf/updates/features/
echo $currentTarget >> allUpdates.txt
ls $currentTarget >> allUpdates.txt
currentTarget=/home/data/httpd/download.eclipse.org/tools/emf/updates/plugins/
echo $currentTarget >> allUpdates.txt
ls $currentTarget >> allUpdates.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment