/[escript]/branches/windows_from_1456_trunk_1574_merged_in/autodocs.sh
ViewVC logotype

Annotation of /branches/windows_from_1456_trunk_1574_merged_in/autodocs.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1219 - (hide annotations)
Wed Aug 1 00:39:47 2007 UTC (12 years ago) by ksteube
Original Path: trunk/autodocs.sh
File MIME type: application/x-sh
File size: 1991 byte(s)
Adjustments to the nightly tests and document generation

1 ksteube 1218 #!/bin/bash
2    
3     # Build all escript documentation on shake71 and put it on the web server
4     # in the proper place so the ESSCC twiki can find it. The build command is
5     # scons docs
6    
7     # Run this nightly on shake71 via cron
8    
9     # Requires:
10     # svn checkout from shake200
11     # scp to shake200 to upload new documentation to web site
12     # epydoc
13     # doxygen
14     # latex
15     # latex2html
16    
17     DIR="/home/Work/Documentation_Escript"
18    
19     START=`date '+%Y/%m/%d %H:%M'`
20 ksteube 1219 RunDate=`date '+%Y_%m_%d'`
21 ksteube 1218
22 ksteube 1219 scons='/home/Work/scons-0.96.92/bin/scons'
23    
24 ksteube 1218 finish () {
25     # state will be 'FAILURE' or 'SUCCESS'
26     state="$1"
27     date
28     # Clean up the sandbox
29     cd $DIR
30     ### /bin/rm -rf sandbox
31     END=`date '+%Y/%m/%d %H:%M'`
32 ksteube 1219 cat << END_MSG | mail -s "ESYS_TESTS docs $RunDate $state" k.steube@uq.edu.au
33 ksteube 1218 $2.
34     The tests ran from $START to $END
35 ksteube 1219 See the log file /home/Work/Documentation_Escript/log for info
36 ksteube 1218 This mail was sent by $0
37 ksteube 1219 running via cron as $USER on `hostname`.
38 ksteube 1218 END_MSG
39     if [ "x$state" = "xFAILURE" ]; then
40     exit 1
41     fi
42     exit 0
43     }
44    
45     umask 022
46    
47     cd $DIR || finish FAILURE "Could not cd to $DIR"
48    
49 ksteube 1219 /bin/rm -rf sandbox
50 ksteube 1218 mkdir sandbox || finish FAILURE "Could not mkdir sandbox"
51     cd sandbox || finish FAILURE "Could not cd to sandbox"
52    
53     echo "Checking out esys13/trunk"
54     svn checkout https://shake200.esscc.uq.edu.au/svn/esys13/trunk || finish FAILURE "Could not checkout esys13/trunk"
55    
56     export PATH="/home/Work/latex2html-2002-2-1/bin:$PATH"
57     export LD_LIBRARY_PATH="$DIR/sandbox/trunk/lib:/home/Work/VTK-4.4.2/lib"
58     export PYTHONPATH="$DIR/sandbox/trunk"
59    
60     # Generate documentation
61     echo "Generating documentation"
62    
63     cd trunk || finish FAILURE "Could not cd to trunk"
64     mkdir release release/doc || finish FAILURE "Could not create release directory"
65 ksteube 1219 $scons dodebug=yes useMPI=no docs || finish FAILURE "Could not run scons docs"
66 ksteube 1218 scp -r release/doc/* shake200:/home/www/esys/esys13/nightly || finish FAILURE "Could not copy documentation to nightly area"
67    
68     echo "Cleaning up"
69    
70     finish SUCCESS "Successfully ran 'scons docs' on `hostname`"
71    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26