1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 08:15:48 +02:00
cdt/releng/org.eclipse.rse.updatesite/bin/mkTestUpdates.sh

58 lines
1.5 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 ..
SITE=`pwd`
TAG=`ls features | head -1 | sed -e 's,[^_]*_[0-9.]*\([^.]*\).jar,\1,'`
rm site.xml web/site.xsl
cvs -q update -d
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,Project Test Update,g' \
site.xml > site.xml.new
mv -f site.xml.new site.xml
sed -e 's,Project Update,Project Test Update,g' \
web/site.xsl > web/site.xsl.new
mv -f web/site.xsl.new web/site.xsl
else
echo "Working on official update site"
fi
sed -e "s,200607201800,$TAG,g" \
site.xml > site.xml.new
mv -f site.xml.new site.xml
# optimize the site
# see http://wiki.eclipse.org/index.php/Platform-releng-faq
#Use Java5 on build.eclipse.org
export PATH=/shared/common/ibm-java2-ppc64-50/bin:$PATH
#Pack the site
2006-07-26 11:57:04 +00:00
echo "Packing the site... $SITE"
java -jar $HOME/ws/eclipse/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..."
2006-07-26 11:57:04 +00:00
java -jar $HOME/ws/eclipse/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
2006-07-26 11:57:04 +00:00
chgrp -R dsdp-tm-rse .
2006-07-26 11:40:30 +00:00
chmod -R g+w .
cd $curdir