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

Add script to generate testUpdates site

This commit is contained in:
Martin Oberhuber 2006-07-26 11:35:13 +00:00
parent 0654f50312
commit 3bbdad8793

View file

@ -0,0 +1,38 @@
#!/bin/sh
# Convert normal "site.xml" to "testUpdates"
curdir=`pwd`
cd `dirname $0`
mydir=`pwd`
umask 002
# patch site.xml
cd ..
TAG=`ls plugins | 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" \
site.xml > site.xml.new
chgrp dsdp-tm-rse site.xml.new
mv -f site.xml.new 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
#Pack the site
java -jar startup.jar \
-application org.eclipse.update.core.siteOptimizer
-jarProcessor -outputDir $site
-processAll -pack $site
#Create the digest
java -jar startup.jar \
-application org.eclipse.update.core.siteOptimizer \
-digestBuilder -digestOutputDir=$site \
-siteXML=$site/site.xml