You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2005/10/14 09:41:15 UTC

svn commit: r321043 - in /forrest: ./ config/ config/forrest-trunk-stable/ config/forrest-trunk/ config/forrestbot-trunk-stable/ config/forrestbot-trunk-stable/conf/ config/forrestbot-trunk-stable/conf/work/ config/forrestbot-trunk-stable/logs/ config/...

Author: crossley
Date: Fri Oct 14 00:40:57 2005
New Revision: 321043

URL: http://svn.apache.org/viewcvs?rev=321043&view=rev
Log:
Import initial config for forrest.zones.apache.org

Added:
    forrest/README.txt   (with props)
    forrest/config/
    forrest/config/README.txt   (with props)
    forrest/config/forrest-trunk/
    forrest/config/forrest-trunk-stable/
    forrest/config/forrestbot-trunk/
    forrest/config/forrestbot-trunk-stable/
    forrest/config/forrestbot-trunk-stable/conf/
    forrest/config/forrestbot-trunk-stable/conf/work/
    forrest/config/forrestbot-trunk-stable/forrestbot.sh   (with props)
    forrest/config/forrestbot-trunk-stable/logs/
    forrest/config/forrestbot-trunk-stable/sources/
    forrest/config/forrestbot-trunk/conf/
    forrest/config/forrestbot-trunk/conf/work/
    forrest/config/forrestbot-trunk/forrestbot.sh   (with props)
    forrest/config/forrestbot-trunk/logs/
    forrest/config/forrestbot-trunk/sources/
    forrest/config/setenv-forrest-trunk-stable.sh   (with props)
    forrest/config/setenv-forrest-trunk.sh   (with props)
    forrest/config/setenv-java-14.sh   (with props)
    forrest/config/setenv-java-15.sh   (with props)
    forrest/config/setenv.sh   (with props)
    forrest/config/update-forrest-trunk.sh   (with props)
    forrest/htdocs/
    forrest/htdocs/ft/
    forrest/htdocs/ft/build/
    forrest/htdocs/ft/forrest-seed.xml   (with props)
    forrest/htdocs/ft/publish/
    forrest/htdocs/ft/work/
    forrest/htdocs/ft/work/svn/
    forrest/htdocs/fts/
    forrest/htdocs/fts/build/
    forrest/htdocs/fts/forrest-seed.xml   (with props)
    forrest/htdocs/fts/publish/
    forrest/htdocs/fts/work/
    forrest/htdocs/fts/work/svn/
    forrest/htdocs/robots.txt   (with props)

Added: forrest/README.txt
URL: http://svn.apache.org/viewcvs/forrest/README.txt?rev=321043&view=auto
==============================================================================
--- forrest/README.txt (added)
+++ forrest/README.txt Fri Oct 14 00:40:57 2005
@@ -0,0 +1,8 @@
+These are the files and directory structures for
+forrest.zones.apache.org
+
+config
+creates /export/home/config
+
+htdocs
+creates /var/apache2/htdocs

Propchange: forrest/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/config/README.txt
URL: http://svn.apache.org/viewcvs/forrest/config/README.txt?rev=321043&view=auto
==============================================================================
--- forrest/config/README.txt (added)
+++ forrest/config/README.txt Fri Oct 14 00:40:57 2005
@@ -0,0 +1,45 @@
+Note: All of the configuration and scripts need to go in Forrest SVN.
+None of this is yet being backed up.
+
+/export/home/config is a space to temporarily get the forrestbot running
+until we find a better location (perhaps /export/opt/).
+Note: There was some discussion on infra@ about /local (around 200507)
+
+Files here are owned in the group "other" so any one of us can
+edit/update. Make sure that your 'umask' is set properly so that
+new files have group write permissions.
+
+See ~crossley/my-crontab.txt
+
+setenv*.sh ... these are sourced by the forrestbot and other cronjobs
+to set the environment.
+
+forrest-trunk/ ... svn co of trunk
+forrestbot-trunk/ ... fb operating with trunk
+update-forrest-trunk.sh ... called by cron to update and re-build forrest-trunk.
+
+forrest-trunk-stable/ ... svn co of a stable trunk
+forrestbot-trunk-stable/ ... fb operating with trunk-stable (not yet running)
+(trunk doesn't seem very stable at the moment, so using r289457 2005-09-16)
+Update this manually as needed:
+source setenv-java-14.sh
+cd forrest-trunk-stable
+svn up
+cd main
+./build.sh clean; ./build.sh
+
+Forrestbot configuration and generated docs are at
+/var/apache2/ft ... fb operating with trunk
+/var/apache2/fts ... fb operating with trunk-stable (this only runs when required)
+
+Forrestbot logs are at
+forrestbot-trunk*/logs/
+and old ones are cleaned up by crossley crontab.
+
+Also keep an occasional eye on
+./update-forrest-trunk.log
+This is the output of the cronjob to do svn update to trunk
+and re-build.
+
+NOTE: There is an old forrestbot in ~crossley which i am gradually moving
+over to this directory.

Propchange: forrest/config/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/config/forrestbot-trunk-stable/forrestbot.sh
URL: http://svn.apache.org/viewcvs/forrest/config/forrestbot-trunk-stable/forrestbot.sh?rev=321043&view=auto
==============================================================================
--- forrest/config/forrestbot-trunk-stable/forrestbot.sh (added)
+++ forrest/config/forrestbot-trunk-stable/forrestbot.sh Fri Oct 14 00:40:57 2005
@@ -0,0 +1,34 @@
+#!/usr/bin/bash
+
+# See also ~crossley/my-crontab.txt
+
+export CONFIG=/export/home/config
+source ${CONFIG}/setenv.sh
+source ${CONFIG}/setenv-java-14.sh
+source ${CONFIG}/setenv-forrest-trunk-stable.sh
+
+site=${2%.xml}
+
+# redirect the output of the cronjob until we have it working properly
+cron_logfile=/home/crossley/cron-stable.out
+echo "site=$site" > $cron_logfile
+#env >> $cron_logfile
+
+case $site in
+  "foo" )
+    # add non-standard site to do special processing before calling forrestbot
+    ;;
+
+  "forrest-seed" )
+    cd ${FORRESTBOT_HOME}/sources/forrest-seed
+    rm -rf *
+    forrest seed >> $cron_logfile
+    ;;
+
+  * )
+    ;;
+esac
+
+cd $DOC_ROOT/fts
+#   forrest -Dforrest.jvmargs=-Djava.awt.headless=true $* > /dev/null 2>&1
+forrest -Dforrest.jvmargs=-Djava.awt.headless=true $* >> $cron_logfile 2>&1

Propchange: forrest/config/forrestbot-trunk-stable/forrestbot.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/config/forrestbot-trunk-stable/forrestbot.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: forrest/config/forrestbot-trunk/forrestbot.sh
URL: http://svn.apache.org/viewcvs/forrest/config/forrestbot-trunk/forrestbot.sh?rev=321043&view=auto
==============================================================================
--- forrest/config/forrestbot-trunk/forrestbot.sh (added)
+++ forrest/config/forrestbot-trunk/forrestbot.sh Fri Oct 14 00:40:57 2005
@@ -0,0 +1,34 @@
+#!/usr/bin/bash
+
+# See also ~crossley/my-crontab.txt
+
+export CONFIG=/export/home/config
+source ${CONFIG}/setenv.sh
+source ${CONFIG}/setenv-java-14.sh
+source ${CONFIG}/setenv-forrest-trunk.sh
+
+site=${2%.xml}
+
+# redirect the output of the cronjob until we have it working properly
+cron_logfile="/home/crossley/cron.out"
+echo "site=$site" > $cron_logfile
+#env >> $cron_logfile
+
+case $site in
+  "foo" )
+    # add non-standard site to do special processing before calling forrestbot
+    ;;
+
+  "forrest-seed" )
+    cd ${FORRESTBOT_HOME}/sources/forrest-seed
+    rm -rf *
+    forrest seed >> $cron_logfile
+    ;;
+
+  * )
+    ;;
+esac
+
+cd $DOC_ROOT/ft
+#   forrest -Dforrest.jvmargs=-Djava.awt.headless=true $* > /dev/null 2>&1
+forrest -Dforrest.jvmargs=-Djava.awt.headless=true $* >> $cron_logfile 2>&1

Propchange: forrest/config/forrestbot-trunk/forrestbot.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/config/forrestbot-trunk/forrestbot.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: forrest/config/setenv-forrest-trunk-stable.sh
URL: http://svn.apache.org/viewcvs/forrest/config/setenv-forrest-trunk-stable.sh?rev=321043&view=auto
==============================================================================
--- forrest/config/setenv-forrest-trunk-stable.sh (added)
+++ forrest/config/setenv-forrest-trunk-stable.sh Fri Oct 14 00:40:57 2005
@@ -0,0 +1,5 @@
+#!/usr/bin/bash
+
+export FORREST_HOME=${CONFIG}/forrest-trunk-stable
+export FORRESTBOT_HOME=${CONFIG}/forrestbot-trunk-stable
+export PATH=${PATH}:${FORREST_HOME}/bin

Propchange: forrest/config/setenv-forrest-trunk-stable.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/config/setenv-forrest-trunk-stable.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: forrest/config/setenv-forrest-trunk.sh
URL: http://svn.apache.org/viewcvs/forrest/config/setenv-forrest-trunk.sh?rev=321043&view=auto
==============================================================================
--- forrest/config/setenv-forrest-trunk.sh (added)
+++ forrest/config/setenv-forrest-trunk.sh Fri Oct 14 00:40:57 2005
@@ -0,0 +1,5 @@
+#!/usr/bin/bash
+
+export FORREST_HOME=${CONFIG}/forrest-trunk
+export FORRESTBOT_HOME=${CONFIG}/forrestbot-trunk
+export PATH=${PATH}:${FORREST_HOME}/bin

Propchange: forrest/config/setenv-forrest-trunk.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/config/setenv-forrest-trunk.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: forrest/config/setenv-java-14.sh
URL: http://svn.apache.org/viewcvs/forrest/config/setenv-java-14.sh?rev=321043&view=auto
==============================================================================
--- forrest/config/setenv-java-14.sh (added)
+++ forrest/config/setenv-java-14.sh Fri Oct 14 00:40:57 2005
@@ -0,0 +1,6 @@
+#!/usr/bin/bash
+
+# Java 1.4.2_06
+export JAVA_HOME=/usr/j2se
+
+export PATH=${JAVA_HOME}/bin:${PATH}

Propchange: forrest/config/setenv-java-14.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/config/setenv-java-14.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: forrest/config/setenv-java-15.sh
URL: http://svn.apache.org/viewcvs/forrest/config/setenv-java-15.sh?rev=321043&view=auto
==============================================================================
--- forrest/config/setenv-java-15.sh (added)
+++ forrest/config/setenv-java-15.sh Fri Oct 14 00:40:57 2005
@@ -0,0 +1,6 @@
+#!/usr/bin/bash
+
+# Java 1.5
+export JAVA_HOME=/usr/java
+
+export PATH=${JAVA_HOME}/bin:${PATH}

Propchange: forrest/config/setenv-java-15.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/config/setenv-java-15.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: forrest/config/setenv.sh
URL: http://svn.apache.org/viewcvs/forrest/config/setenv.sh?rev=321043&view=auto
==============================================================================
--- forrest/config/setenv.sh (added)
+++ forrest/config/setenv.sh Fri Oct 14 00:40:57 2005
@@ -0,0 +1,7 @@
+#!/usr/bin/bash
+
+export SHELL=/usr/bin/bash
+export DOC_ROOT=/var/apache2/htdocs
+export CONFIG=/export/home/config
+
+export PATH=/usr/bin:/usr/sfw/bin:/usr/sfw/sbin:/opt/sfw/bin:/opt/sfw/sbin:/opt/SUNWspro/bin:/usr/X/bin:/usr/ucb:/usr/sbin:/usr/ccs/bin:/opt/subversion-1.1.4/bin

Propchange: forrest/config/setenv.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/config/setenv.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: forrest/config/update-forrest-trunk.sh
URL: http://svn.apache.org/viewcvs/forrest/config/update-forrest-trunk.sh?rev=321043&view=auto
==============================================================================
--- forrest/config/update-forrest-trunk.sh (added)
+++ forrest/config/update-forrest-trunk.sh Fri Oct 14 00:40:57 2005
@@ -0,0 +1,58 @@
+#!/usr/bin/bash
+
+# FIXME: Need better error handling if SVN fails or if build fails.
+
+source /export/home/config/setenv.sh
+source /export/home/config/setenv-java-14.sh
+
+logfile=${CONFIG}/update-forrest-trunk.log
+sender=dev\@forrest.apache.org
+#recipient=crossley\@apache.org               #TEST
+recipient=$sender
+
+function sendMsg {
+cat | mail $recipient <<EOF
+Subject: Forrest.zones - $1
+To: $recipient
+From: $sender
+Reply-to: $sender
+
+At forrest.zones.apache.org
+$1
+$2
+See logfile: $logfile
+EOF
+}
+
+date > $logfile
+
+echo >> $logfile
+echo "Do svn update ..." >> $logfile
+cd ${CONFIG}/forrest-trunk
+svn update >> $logfile 2>&1
+statusUpdate=$?
+echo "statusUpdate=$statusUpdate" >> $logfile
+if [ ! $statusUpdate ]; then
+  sendMsg "svn update failed"
+  exit 1
+fi
+
+echo >> $logfile
+echo "Do build clean ..." >> $logfile
+cd main
+./build.sh clean >> $logfile 2>&1
+statusClean=$?
+echo "statusClean=$statusClean" >> $logfile
+if [ ! $statusClean ]; then
+  sendMsg "build clean failed"
+fi
+
+echo >> $logfile
+echo "Do build ..." >> $logfile 2>&1
+./build.sh >> $logfile 2>&1
+statusBuild=$?
+
+echo "statusBuild=$statusBuild" >> $logfile
+if [ ! $statusBuild ]; then
+  sendMsg "build failed"
+fi

Propchange: forrest/config/update-forrest-trunk.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/config/update-forrest-trunk.sh
------------------------------------------------------------------------------
    svn:executable = 

Added: forrest/htdocs/ft/forrest-seed.xml
URL: http://svn.apache.org/viewcvs/forrest/htdocs/ft/forrest-seed.xml?rev=321043&view=auto
==============================================================================
--- forrest/htdocs/ft/forrest-seed.xml (added)
+++ forrest/htdocs/ft/forrest-seed.xml Fri Oct 14 00:40:57 2005
@@ -0,0 +1,20 @@
+<project name="forrest-seed" default="main">
+  <property name="notify.email.host" value="localhost"/>
+  <property name="notify.email.to" value="Forrest developers &lt;dev@forrest.apache.org>"/>
+  <property name="notify.administrator" value="Forrest developers"/>
+  <!--
+  <property name="notify.administrator" value="Forrest developers &lt;dev@forrest.apache.org>"/>
+  -->
+  <property name="notify.on.failure" value="true"/>
+  <property name="notify.on.success" value="false"/>
+  <property name="build.work-dir" value="/export/home/config/forrestbot-trunk/conf/work/forrest-seed"/>
+  <property name="build.log-dir" value="/export/home/config/forrestbot-trunk/logs"/>
+  <property name="getsrc.local.root-dir" location="/export/home/config/forrestbot-trunk/sources/forrest-seed"/>
+  <property name="deploy.local.dir" value="/var/apache2/htdocs/ft/publish/forrest-seed"/>
+
+  <target name="getsrc" depends="getsrc.clean-workdir, getsrc.local"/>
+  <target name="notify" depends="notify.local, notify.email"/>
+  <target name="deploy" depends="deploy.local"/>
+
+  <import file="/export/home/config/forrest-trunk/tools/forrestbot/core/forrestbot.xml"/>
+</project>

Propchange: forrest/htdocs/ft/forrest-seed.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/htdocs/fts/forrest-seed.xml
URL: http://svn.apache.org/viewcvs/forrest/htdocs/fts/forrest-seed.xml?rev=321043&view=auto
==============================================================================
--- forrest/htdocs/fts/forrest-seed.xml (added)
+++ forrest/htdocs/fts/forrest-seed.xml Fri Oct 14 00:40:57 2005
@@ -0,0 +1,24 @@
+<project name="forrest-seed" default="main">
+  <property name="notify.email.host" value="localhost"/>
+  <property name="notify.email.to" value="David Crossley &lt;crossley@apache.org&gt;"/>
+<!--
+  <property name="notify.email.to" value="Forrest developers &lt;dev@forrest.apache.org>"/>
+  <property name="notify.email.to" value="David Crossley &lt;crossley@apache.org&gt;"/>
+-->
+  <property name="notify.administrator" value="Forrest developers"/>
+  <!--
+  <property name="notify.administrator" value="Forrest developers &lt;dev@forrest.apache.org>"/>
+  -->
+  <property name="notify.on.failure" value="true"/>
+  <property name="notify.on.success" value="false"/>
+  <property name="build.work-dir" value="/export/home/config/forrestbot-trunk-stable/conf/work/forrest-seed"/>
+  <property name="build.log-dir" value="/export/home/config/forrestbot-trunk-stable/logs"/>
+  <property name="getsrc.local.root-dir" location="/export/home/config/forrestbot-trunk-stable/sources/forrest-seed"/>
+  <property name="deploy.local.dir" value="/var/apache2/htdocs/fts/publish/forrest-seed"/>
+
+  <target name="getsrc" depends="getsrc.clean-workdir, getsrc.local"/>
+  <target name="notify" depends="notify.local, notify.email"/>
+  <target name="deploy" depends="deploy.local"/>
+
+  <import file="/export/home/config/forrest-trunk-stable/tools/forrestbot/core/forrestbot.xml"/>
+</project>

Propchange: forrest/htdocs/fts/forrest-seed.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/htdocs/robots.txt
URL: http://svn.apache.org/viewcvs/forrest/htdocs/robots.txt?rev=321043&view=auto
==============================================================================
--- forrest/htdocs/robots.txt (added)
+++ forrest/htdocs/robots.txt Fri Oct 14 00:40:57 2005
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /

Propchange: forrest/htdocs/robots.txt
------------------------------------------------------------------------------
    svn:eol-style = native