mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
Add scripts for automatic infocenter updates on dsdp.eclipse.org
This commit is contained in:
parent
f41248d8fb
commit
5dc7eaa7b1
5 changed files with 74 additions and 0 deletions
11
releng/org.eclipse.rse.releng.infocenter/.project
Normal file
11
releng/org.eclipse.rse.releng.infocenter/.project
Normal 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>
|
5
releng/org.eclipse.rse.releng.infocenter/addSites.sh
Executable file
5
releng/org.eclipse.rse.releng.infocenter/addSites.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
IHOME=/home/infocenter/latest
|
||||||
|
$IHOME/infocenter.sh addSite -from $IHOME/plugins/rse/eclipse
|
||||||
|
$IHOME/infocenter.sh apply
|
||||||
|
|
24
releng/org.eclipse.rse.releng.infocenter/infocenter.sh
Executable file
24
releng/org.eclipse.rse.releng.infocenter/infocenter.sh
Executable 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
|
||||||
|
|
4
releng/org.eclipse.rse.releng.infocenter/readme.txt
Normal file
4
releng/org.eclipse.rse.releng.infocenter/readme.txt
Normal 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.
|
30
releng/org.eclipse.rse.releng.infocenter/update.sh
Executable file
30
releng/org.eclipse.rse.releng.infocenter/update.sh
Executable 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue