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

Contents of /branches/arrayview_from_1695_trunk/autodocs.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1218 - (show annotations)
Wed Jul 18 01:01:41 2007 UTC (11 years, 8 months ago) by ksteube
Original Path: trunk/autodocs.sh
File MIME type: application/x-sh
File size: 1919 byte(s)
New script to be run via cron on shake71 to generate all documentation
nightly.  This generates the docs available on the twiki page EsysLocalUser

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
21 finish () {
22 # state will be 'FAILURE' or 'SUCCESS'
23 state="$1"
24 date
25 # Clean up the sandbox
26 cd $DIR
27 ### /bin/rm -rf sandbox
28 END=`date '+%Y/%m/%d %H:%M'`
29 cat << END_MSG | mail -s "ESYS_TESTS docs $START $state" k.steube@uq.edu.au
30 $2.
31 The tests ran from $START to $END
32 This mail was sent by $0
33 running as $USER on `hostname`.
34 END_MSG
35 if [ "x$state" = "xFAILURE" ]; then
36 exit 1
37 fi
38 exit 0
39 }
40
41 umask 022
42
43 cd $DIR || finish FAILURE "Could not cd to $DIR"
44
45 test -d sandbox && finish FAILURE "The documentation sandbox already exists in $DIR/sandbox"
46 mkdir sandbox || finish FAILURE "Could not mkdir sandbox"
47 cd sandbox || finish FAILURE "Could not cd to sandbox"
48
49 echo "Checking out esys13/trunk"
50 svn checkout https://shake200.esscc.uq.edu.au/svn/esys13/trunk || finish FAILURE "Could not checkout esys13/trunk"
51
52 export PATH="/home/Work/latex2html-2002-2-1/bin:$PATH"
53 export LD_LIBRARY_PATH="$DIR/sandbox/trunk/lib:/home/Work/VTK-4.4.2/lib"
54 export PYTHONPATH="$DIR/sandbox/trunk"
55
56 # Generate documentation
57 echo "Generating documentation"
58
59 cd trunk || finish FAILURE "Could not cd to trunk"
60 mkdir release release/doc || finish FAILURE "Could not create release directory"
61 scons dodebug=yes useMPI=no docs || finish FAILURE "Could not run scons docs"
62 scp -r release/doc/* shake200:/home/www/esys/esys13/nightly || finish FAILURE "Could not copy documentation to nightly area"
63
64 echo "Cleaning up"
65
66 finish SUCCESS "Successfully ran 'scons docs' on `hostname`"
67

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26