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:
parent
0654f50312
commit
3bbdad8793
1 changed files with 38 additions and 0 deletions
38
releng/org.eclipse.rse.updatesite/bin/mkTestUpdates.sh
Executable file
38
releng/org.eclipse.rse.updatesite/bin/mkTestUpdates.sh
Executable 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
|
Loading…
Add table
Reference in a new issue