/[escript]/trunk/doc/esys_doc_cron.sh
ViewVC logotype

Annotation of /trunk/doc/esys_doc_cron.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1387 - (hide annotations)
Fri Jan 11 07:45:26 2008 UTC (11 years, 11 months ago) by trankine
Original Path: temp/doc/esys_doc_cron.sh
File MIME type: application/x-sh
File size: 3218 byte(s)
Restore the trunk that existed before the windows changes were committed to the (now moved to branches) old trunk.
1 cochrane 369 #!/bin/bash
2    
3     # keep a record of where we are
4     HERE=`pwd`
5    
6     # set stuff up
7     . /opt/modules/default/init/bash
8     export MODULEPATH=$MODULEPATH:/raid2/tools/modulefiles/:/data/raid2/toolspp4/modulefiles/gcc-3.3.6
9    
10     # load the relevant modules
11     module load vtk-4.2.1-MangledMesa_gcc-3.3.5
12    
13     # get into position
14     cd $HOME/raid2/esys_doc_sandbox/esys13/trunk
15    
16     # set up the environment
17     export ESYS_ROOT=`pwd`
18     export LD_LIBRARY_PATH=$ESYS_ROOT/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH
19     export PATH=/raid2/tools/python-2.3.4/bin:$PATH
20     export PYTHONPATH=$ESYS_ROOT:$PYTHONPATH
21     export OMP_SCHEDULE="dynamic"
22     export OMP_NUM_THREADS=4
23     export OMP_DYNAMIC=TRUE
24     export OMP_NESTED=FALSE
25    
26     # update the cvs
27     svn update > /var/tmp/svn_msgs.txt 2>&1
28    
29     # make esys
30     module load intel_cc.80.055
31     #echo "Making esys clean" > /var/tmp/scons_msgs.txt
32     #scons -c >> /var/tmp/scons_msgs.txt 2>&1
33     echo "Making esys install" >> /var/tmp/scons_msgs.txt
34     scons >> /var/tmp/scons_msgs.txt 2>&1
35    
36     # run doxygen
37     module load doxygen
38     cd $HOME/raid2/esys_doc_sandbox/esys13/trunk/doc/
39     doxygen doxygen/doxygen_esys > /var/tmp/doxygen_msgs.txt 2>&1
40     #doxygen doxygen_esys_python > /var/tmp/doxygen_python_msgs.txt 2>&1
41    
42     # run epydoc
43     cd $HOME/raid2/esys_doc_sandbox/esys13/trunk/
44     module load epydoc
45     epydoc --html -o doc/obj/epydoc -n esys esys > /var/tmp/epydoc_msgs.txt 2>&1
46    
47     # copy the docs to the webserver
48     cd $HOME/raid2/esys_doc_sandbox/esys13/trunk/doc/obj/
49     echo "Copying python docs to the webserver" > /var/tmp/scp_msgs.txt 2>&1
50     scp -i ~/.cron-ess-rsync-key -r epydoc/ shake200:/home/www/esys/ >> /var/tmp/scp_msgs.txt 2>&1
51     echo "Copying C++ docs to the webserver" >> /var/tmp/scp_msgs.txt 2>&1
52     scp -i ~/.cron-ess-rsync-key -r doxygen/ shake200:/home/www/esys/ >> /var/tmp/scp_msgs.txt 2>&1
53    
54     # make an html file to link to the errors if any
55     echo "<html>" > /var/tmp/docbuildlog.html
56     echo "<head>" >> /var/tmp/docbuildlog.html
57     echo "<title>Documentation autobuild log files</title>" >> /var/tmp/docbuildlog.html
58     echo "</head>" >> /var/tmp/docbuildlog.html
59     echo "<body>" >> /var/tmp/docbuildlog.html
60     DATE=`date`
61     echo "<b>Last Update: $DATE</b>" >> /var/tmp/docbuildlog.html
62     echo "<p>" >> /var/tmp/docbuildlog.html
63     echo "<a href=\"svn_msgs.txt\">svn_msgs.txt</a><br>" >> /var/tmp/docbuildlog.html
64     echo "<a href=\"scons_msgs.txt\">scons_msgs.txt</a><br>" >> /var/tmp/docbuildlog.html
65     echo "<a href=\"doxygen_msgs.txt\">doxygen_msgs.txt</a><br>" >> /var/tmp/docbuildlog.html
66     echo "<a href=\"epydoc_msgs.txt\">epydoc_msgs.txt</a><br>" >> /var/tmp/docbuildlog.html
67     echo "<a href=\"scp_msgs.txt\">scp_msgs.txt</a><br>" >> /var/tmp/docbuildlog.html
68     echo "</p>" >> /var/tmp/docbuildlog.html
69     echo "</body>" >> /var/tmp/docbuildlog.html
70     echo "</html>" >> /var/tmp/docbuildlog.html
71    
72     scp -i ~/.cron-ess-rsync-key /var/tmp/svn_msgs.txt shake200:/home/www/esys
73     scp -i ~/.cron-ess-rsync-key /var/tmp/scons_msgs.txt shake200:/home/www/esys
74     scp -i ~/.cron-ess-rsync-key /var/tmp/doxygen_msgs.txt shake200:/home/www/esys
75     scp -i ~/.cron-ess-rsync-key /var/tmp/epydoc_msgs.txt shake200:/home/www/esys
76     scp -i ~/.cron-ess-rsync-key /var/tmp/scp_msgs.txt shake200:/home/www/esys
77    
78     scp -i ~/.cron-ess-rsync-key /var/tmp/docbuildlog.html shake200:/home/www/esys/
79    
80     # get back to "here"
81     cd $HERE

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26