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

Add scripts for automatic infocenter updates on dsdp.eclipse.org

This commit is contained in:
Martin Oberhuber 2006-07-20 10:47:33 +00:00
parent f41248d8fb
commit 5dc7eaa7b1
5 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.rse.releng.infocenter</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

View file

@ -0,0 +1,5 @@
#!/bin/sh
IHOME=/home/infocenter/latest
$IHOME/infocenter.sh addSite -from $IHOME/plugins/rse/eclipse
$IHOME/infocenter.sh apply

View file

@ -0,0 +1,24 @@
#!/bin/sh
umask 022
PATH=/opt/j2sdk1.4.2_12/bin:$PATH
export PATH
EHOME=/home/infocenter/eclipse3.2/eclipse
IHOME=/home/infocenter/latest
if [ "$1" = "" -o "$1" = "help" ]; then
echo "Usage: infocenter.sh [start|shutdown|addSite -from dir|apply]"
exit 1
fi
java \
-classpath $EHOME/plugins/org.eclipse.help.base_3.2.0.v20060601.jar \
org.eclipse.help.standalone.Infocenter \
-command $* \
-eclipsehome $EHOME \
-data $IHOME/workspace \
-port 27127 \
-nl en -locales en \
-configuration file://$IHOME/config

View file

@ -0,0 +1,4 @@
This project contains scripts needed to run the Eclipse headless infocenter
application, serving latest online help from dsdp.eclipse.org.
The scripts are written to run by cron job, as user "infocenter", on dsdp.eclipse.org.

View file

@ -0,0 +1,30 @@
#!/bin/sh
umask 022
IHOME=/home/infocenter/latest
curdir=`pwd`
#update RSE
cd $IHOME/deploy/rse
rm *
wget "http://download.eclipse.org/dsdp/tm/downloads/drops/N.latest/RSE-SDK-latest.zip"
if [ -e RSE-SDK-latest.zip ]; then
unzip RSE-SDK-latest.zip
rm -rf plugins
mkdir plugins
mv eclipse/plugins/*doc* plugins
rm -rf eclipse
NUM=`ls plugins/*.jar | wc -l`
echo "NUM=$NUM"
if [ "$NUM" = "3" ]; then
$IHOME/infocenter.sh shutdown
rm $IHOME/plugins/rse/eclipse/plugins/*
cp -p plugins/* $IHOME/plugins/rse/eclipse/plugins/
cd $IHOME
nohup $IHOME/infocenter.sh start &
echo "Doing fake search to force rebuilding index"
sleep 5
wget "http://localhost/help/latest/advanced/searchView.jsp?searchWord=SystemBasePlugin&maxHits=2" -O search.out.jsp
fi
fi