1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +02:00
cdt/releng/org.eclipse.rse.updatesite/bin/mkTestUpdates.sh

50 lines
1.2 KiB
Bash
Raw Normal View History

#!/bin/sh
# Convert normal "site.xml" to "testUpdates"
2006-07-26 11:40:30 +00:00
#
# Prerequisites:
# - Eclipse 3.2 installed in $HOME/ws/eclipse
# - Java5 in the PATH or in /shared/common/ibm-java2-ppc64-50
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
2006-07-26 11:40:30 +00:00
echo "Packing the site..."
java -jar startup.jar \
2006-07-26 11:40:30 +00:00
-application org.eclipse.update.core.siteOptimizer \
-jarProcessor -outputDir $site \
-processAll -pack $site
#Create the digest
2006-07-26 11:40:30 +00:00
echo "Creating digest..."
java -jar startup.jar \
-application org.eclipse.update.core.siteOptimizer \
-digestBuilder -digestOutputDir=$site \
-siteXML=$site/site.xml
2006-07-26 11:40:30 +00:00
cd $site
chown -R dsdp-tm-rse .
chmod -R g+w .
cd $curdir