1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 15:15:25 +02:00

Support pack200 and digest for TM update site

This commit is contained in:
Martin Oberhuber 2006-07-26 11:51:48 +00:00
parent 0fa80ceda3
commit 3930ee45ca
2 changed files with 20 additions and 12 deletions

View file

@ -13,19 +13,26 @@ umask 002
# patch site.xml
cd ..
TAG=`ls plugins | head -1 | sed -e 's,[^_]*_[0-9.]*\([^.]*\).jar,\1,'`
SITE=`pwd`
TAG=`ls features | head -1 | sed -e 's,[^_]*_[0-9.]*\([^.]*\).jar,\1,'`
rm site.xml
cvs -q update -d
sed -e 's,/dsdp/tm/updates,/dsdp/tm/testUpdates,g' \
-e "s,200607201800,$TAG,g" \
if [ `basename $SITE` = testUpdates ]; then
echo "Working on test update site"
sed -e 's,/dsdp/tm/updates,/dsdp/tm/testUpdates,g' \
-e 's,Project Update Site,Project Test Update Site,g' \
site.xml > site.xml.new
mv -f site.xml.new site.xml
else
echo "Working on official update site"
fi
sed -e "s,200607201800,$TAG,g" \
site.xml > site.xml.new
chgrp dsdp-tm-rse site.xml.new
mv -f site.xml.new site.xml
chgrp dsdp-tm-rse site.xml
# optimize the site
# see http://wiki.eclipse.org/index.php/Platform-releng-faq
cd ..
site=`pwd`
cd $HOME/ws/eclipse
#Use Java5 on build.eclipse.org
export PATH=/shared/common/ibm-java2-ppc64-50/bin:$PATH
@ -33,17 +40,17 @@ export PATH=/shared/common/ibm-java2-ppc64-50/bin:$PATH
echo "Packing the site..."
java -jar startup.jar \
-application org.eclipse.update.core.siteOptimizer \
-jarProcessor -outputDir $site \
-processAll -pack $site
-jarProcessor -outputDir $SITE \
-processAll -pack $SITE
#Create the digest
echo "Creating digest..."
java -jar startup.jar \
-application org.eclipse.update.core.siteOptimizer \
-digestBuilder -digestOutputDir=$site \
-siteXML=$site/site.xml
-digestBuilder -digestOutputDir=$SITE \
-siteXML=$SITE/site.xml
cd $site
cd $SITE
chown -R dsdp-tm-rse .
chmod -R g+w .
cd $curdir

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<site mirrorsURL="http://www.eclipse.org/downloads/download.php?file=/dsdp/tm/updates/site.xml&amp;format=xml&amp;protocol=http">
<site pack200="true" digestURL="http://download.eclipse.org/dsdp/tm/updates/"
mirrorsURL="http://www.eclipse.org/downloads/download.php?file=/dsdp/tm/updates/site.xml&amp;format=xml&amp;protocol=http">
<description url="http://download.eclipse.org/dsdp/tm/updates/">
This is the Target Management Project Update Site for the Remote Systems Explorer (RSE).
</description>