forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r321044 - in /forrest/zone: ./ 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/ co...
Date Fri, 14 Oct 2005 07:45:05 GMT
Author: crossley
Date: Fri Oct 14 00:44:47 2005
New Revision: 321044

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

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

Added: forrest/zone/README.txt
URL: http://svn.apache.org/viewcvs/forrest/zone/README.txt?rev=321044&view=auto
==============================================================================
--- forrest/zone/README.txt (added)
+++ forrest/zone/README.txt Fri Oct 14 00:44:47 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/zone/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/zone/config/README.txt
URL: http://svn.apache.org/viewcvs/forrest/zone/config/README.txt?rev=321044&view=auto
==============================================================================
--- forrest/zone/config/README.txt (added)
+++ forrest/zone/config/README.txt Fri Oct 14 00:44:47 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/zone/config/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/zone/config/forrestbot-trunk-stable/forrestbot.sh
URL: http://svn.apache.org/viewcvs/forrest/zone/config/forrestbot-trunk-stable/forrestbot.sh?rev=321044&view=auto
==============================================================================
--- forrest/zone/config/forrestbot-trunk-stable/forrestbot.sh (added)
+++ forrest/zone/config/forrestbot-trunk-stable/forrestbot.sh Fri Oct 14 00:44:47 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/zone/config/forrestbot-trunk-stable/forrestbot.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: forrest/zone/config/forrestbot-trunk/forrestbot.sh
URL: http://svn.apache.org/viewcvs/forrest/zone/config/forrestbot-trunk/forrestbot.sh?rev=321044&view=auto
==============================================================================
--- forrest/zone/config/forrestbot-trunk/forrestbot.sh (added)
+++ forrest/zone/config/forrestbot-trunk/forrestbot.sh Fri Oct 14 00:44:47 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/zone/config/forrestbot-trunk/forrestbot.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: forrest/zone/config/setenv-forrest-trunk-stable.sh
URL: http://svn.apache.org/viewcvs/forrest/zone/config/setenv-forrest-trunk-stable.sh?rev=321044&view=auto
==============================================================================
--- forrest/zone/config/setenv-forrest-trunk-stable.sh (added)
+++ forrest/zone/config/setenv-forrest-trunk-stable.sh Fri Oct 14 00:44:47 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/zone/config/setenv-forrest-trunk-stable.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: forrest/zone/config/setenv-forrest-trunk.sh
URL: http://svn.apache.org/viewcvs/forrest/zone/config/setenv-forrest-trunk.sh?rev=321044&view=auto
==============================================================================
--- forrest/zone/config/setenv-forrest-trunk.sh (added)
+++ forrest/zone/config/setenv-forrest-trunk.sh Fri Oct 14 00:44:47 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/zone/config/setenv-forrest-trunk.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: forrest/zone/config/setenv-java-14.sh
URL: http://svn.apache.org/viewcvs/forrest/zone/config/setenv-java-14.sh?rev=321044&view=auto
==============================================================================
--- forrest/zone/config/setenv-java-14.sh (added)
+++ forrest/zone/config/setenv-java-14.sh Fri Oct 14 00:44:47 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/zone/config/setenv-java-14.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

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

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

Added: forrest/zone/config/setenv.sh
URL: http://svn.apache.org/viewcvs/forrest/zone/config/setenv.sh?rev=321044&view=auto
==============================================================================
--- forrest/zone/config/setenv.sh (added)
+++ forrest/zone/config/setenv.sh Fri Oct 14 00:44:47 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/zone/config/setenv.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: forrest/zone/config/update-forrest-trunk.sh
URL: http://svn.apache.org/viewcvs/forrest/zone/config/update-forrest-trunk.sh?rev=321044&view=auto
==============================================================================
--- forrest/zone/config/update-forrest-trunk.sh (added)
+++ forrest/zone/config/update-forrest-trunk.sh Fri Oct 14 00:44:47 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/zone/config/update-forrest-trunk.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: forrest/zone/htdocs/ft/forrest-seed.xml
URL: http://svn.apache.org/viewcvs/forrest/zone/htdocs/ft/forrest-seed.xml?rev=321044&view=auto
==============================================================================
--- forrest/zone/htdocs/ft/forrest-seed.xml (added)
+++ forrest/zone/htdocs/ft/forrest-seed.xml Fri Oct 14 00:44:47 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/zone/htdocs/ft/forrest-seed.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/zone/htdocs/fts/forrest-seed.xml
URL: http://svn.apache.org/viewcvs/forrest/zone/htdocs/fts/forrest-seed.xml?rev=321044&view=auto
==============================================================================
--- forrest/zone/htdocs/fts/forrest-seed.xml (added)
+++ forrest/zone/htdocs/fts/forrest-seed.xml Fri Oct 14 00:44:47 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/zone/htdocs/fts/forrest-seed.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

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



Mime
View raw message