/[escript]/trunk/autodocs.sh
ViewVC logotype

Contents of /trunk/autodocs.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1219 - (show annotations)
Wed Aug 1 00:39:47 2007 UTC (11 years, 6 months ago) by ksteube
File MIME type: application/x-sh
File size: 1991 byte(s)
Adjustments to the nightly tests and document generation

1 #!/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 RunDate=`date '+%Y_%m_%d'`
21
22 scons='/home/Work/scons-0.96.92/bin/scons'
23
24 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 cat << END_MSG | mail -s "ESYS_TESTS docs $RunDate $state" k.steube@uq.edu.au
33 $2.
34 The tests ran from $START to $END
35 See the log file /home/Work/Documentation_Escript/log for info
36 This mail was sent by $0
37 running via cron as $USER on `hostname`.
38 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 /bin/rm -rf sandbox
50 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 $scons dodebug=yes useMPI=no docs || finish FAILURE "Could not run scons docs"
66 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