mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-20 22:55:51 +02:00
Support pack200 and digest for TM update site
This commit is contained in:
parent
0fa80ceda3
commit
3930ee45ca
2 changed files with 20 additions and 12 deletions
|
@ -13,19 +13,26 @@ umask 002
|
||||||
|
|
||||||
# patch site.xml
|
# patch site.xml
|
||||||
cd ..
|
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
|
rm site.xml
|
||||||
cvs -q update -d
|
cvs -q update -d
|
||||||
sed -e 's,/dsdp/tm/updates,/dsdp/tm/testUpdates,g' \
|
if [ `basename $SITE` = testUpdates ]; then
|
||||||
-e "s,200607201800,$TAG,g" \
|
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
|
site.xml > site.xml.new
|
||||||
chgrp dsdp-tm-rse site.xml.new
|
|
||||||
mv -f site.xml.new site.xml
|
mv -f site.xml.new site.xml
|
||||||
|
chgrp dsdp-tm-rse site.xml
|
||||||
|
|
||||||
# optimize the site
|
# optimize the site
|
||||||
# see http://wiki.eclipse.org/index.php/Platform-releng-faq
|
# see http://wiki.eclipse.org/index.php/Platform-releng-faq
|
||||||
cd ..
|
|
||||||
site=`pwd`
|
|
||||||
cd $HOME/ws/eclipse
|
cd $HOME/ws/eclipse
|
||||||
#Use Java5 on build.eclipse.org
|
#Use Java5 on build.eclipse.org
|
||||||
export PATH=/shared/common/ibm-java2-ppc64-50/bin:$PATH
|
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..."
|
echo "Packing the site..."
|
||||||
java -jar startup.jar \
|
java -jar startup.jar \
|
||||||
-application org.eclipse.update.core.siteOptimizer \
|
-application org.eclipse.update.core.siteOptimizer \
|
||||||
-jarProcessor -outputDir $site \
|
-jarProcessor -outputDir $SITE \
|
||||||
-processAll -pack $site
|
-processAll -pack $SITE
|
||||||
|
|
||||||
#Create the digest
|
#Create the digest
|
||||||
echo "Creating digest..."
|
echo "Creating digest..."
|
||||||
java -jar startup.jar \
|
java -jar startup.jar \
|
||||||
-application org.eclipse.update.core.siteOptimizer \
|
-application org.eclipse.update.core.siteOptimizer \
|
||||||
-digestBuilder -digestOutputDir=$site \
|
-digestBuilder -digestOutputDir=$SITE \
|
||||||
-siteXML=$site/site.xml
|
-siteXML=$SITE/site.xml
|
||||||
|
|
||||||
cd $site
|
cd $SITE
|
||||||
chown -R dsdp-tm-rse .
|
chown -R dsdp-tm-rse .
|
||||||
chmod -R g+w .
|
chmod -R g+w .
|
||||||
cd $curdir
|
cd $curdir
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<site mirrorsURL="http://www.eclipse.org/downloads/download.php?file=/dsdp/tm/updates/site.xml&format=xml&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&format=xml&protocol=http">
|
||||||
<description url="http://download.eclipse.org/dsdp/tm/updates/">
|
<description url="http://download.eclipse.org/dsdp/tm/updates/">
|
||||||
This is the Target Management Project Update Site for the Remote Systems Explorer (RSE).
|
This is the Target Management Project Update Site for the Remote Systems Explorer (RSE).
|
||||||
</description>
|
</description>
|
||||||
|
|
Loading…
Add table
Reference in a new issue