You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2006/01/20 18:39:12 UTC

svn commit: r370870 - /lenya/zone/bin/stagingDocu.sh

Author: thorsten
Date: Fri Jan 20 09:39:07 2006
New Revision: 370870

URL: http://svn.apache.org/viewcvs?rev=370870&view=rev
Log:
refactored the staging script to be runnable in cron and added basic loging

Modified:
    lenya/zone/bin/stagingDocu.sh

Modified: lenya/zone/bin/stagingDocu.sh
URL: http://svn.apache.org/viewcvs/lenya/zone/bin/stagingDocu.sh?rev=370870&r1=370869&r2=370870&view=diff
==============================================================================
--- lenya/zone/bin/stagingDocu.sh (original)
+++ lenya/zone/bin/stagingDocu.sh Fri Jan 20 09:39:07 2006
@@ -1,4 +1,20 @@
 #!/usr/bin/bash
-cd $LENYA_DOCU; /opt/subversion-1.1.4/bin/svn up
-source createStatus.sh
-$FORREST_HOME/bin/forrest -f /export/home/lenya/htdocs/publish-website-preview.xml
\ No newline at end of file
+source /export/home/lenya/.profile
+umask 0002
+logfile=/tmp/staging.log
+echo "staging docu src at " $LENYA_DOCU> $logfile
+echo "starting date is " >> $logfile
+date >> $logfile
+cd $LENYA_DOCU
+echo >> $logfile
+echo "Do svn update ..." >> $logfile
+svn up >> $logfile 2>&1
+echo >> $logfile
+echo "...generate status..." >> $logfile
+/export/home/lenya/bin/createStatus.sh >> $logfile  2>&1
+echo >> $logfile
+echo "...invoke forrestbot ..." >> $logfile
+forrest -Dforrest.jvmargs=-Djava.awt.headless=true  -f $DOC_ROOT_SRC/publish-website-preview.xml >> $logfile  2>&1
+echo "BUILD SUCCESSFULL - staging docu" >> $logfile
+echo "last update " >> $logfile
+date >> $logfile



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org