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

Contents of /branches/schroedinger_upto1946/autodocs.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1705 - (show annotations)
Thu Aug 14 05:56:40 2008 UTC (10 years, 6 months ago) by ksteube
Original Path: trunk/autodocs.sh
File MIME type: application/x-sh
File size: 2239 byte(s)
Branch scons-dev is hereby closed.
Some parts of scons scripts have been re-written.

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 # If this fails make sure you have logged in to the repository and can
8 # do password-less svn to shake200. Verify that you can do it by hand
9 # with the exact same svn checkout command (full host name) as used below.
10
11 # Run this nightly on shake71 via cron using:
12 # 0 1 * * 0-6 /home/Work/EscriptDev/Documentation/autodocs.sh > /home/Work/EscriptDev/Documentation/log 2>&1
13
14 # Requires:
15 # svn checkout from shake200
16 # scp to shake200 to upload new documentation to web site
17 # epydoc
18 # doxygen
19 # latex
20 # latex2html
21
22 DIR="/home/Work/EscriptDev/Documentation"
23
24 START=`date '+%Y/%m/%d %H:%M'`
25 RunDate=`date '+%Y_%m_%d'`
26
27 scons='/home/ksteube/s/InstallArea/bin/scons'
28
29 finish () {
30 # state will be 'FAILURE' or 'SUCCESS'
31 state="$1"
32 date
33 # Clean up the sandbox
34 cd $DIR
35 /bin/rm -rf sandbox
36 END=`date '+%Y/%m/%d %H:%M'`
37 cat << END_MSG | mail -s "ESYS_TESTS docs $RunDate $state" k.steube@uq.edu.au
38 $2.
39 The tests ran from $START to $END
40 See the log file $DIR/log for info
41 This mail was sent by $0
42 running via cron as $LOGNAME on `hostname`.
43 END_MSG
44 if [ "x$state" = "xFAILURE" ]; then
45 exit 1
46 fi
47 exit 0
48 }
49
50 umask 022
51
52 cd $DIR || finish FAILURE "Could not cd to $DIR"
53
54 /bin/rm -rf sandbox
55 mkdir sandbox || finish FAILURE "Could not mkdir sandbox"
56 cd sandbox || finish FAILURE "Could not cd to sandbox"
57
58 echo "Checking out esys13/trunk from Subversion"
59 svn checkout https://shake200.esscc.uq.edu.au/svn/esys13/trunk || finish FAILURE "Could not checkout esys13/trunk"
60
61 export LD_LIBRARY_PATH="$DIR/sandbox/trunk/lib"
62 export PYTHONPATH="$DIR/sandbox/trunk"
63
64 # Generate documentation
65 echo "Generating documentation"
66
67 cd trunk || finish FAILURE "Could not cd to trunk"
68 mkdir release release/doc || finish FAILURE "Could not create release directory"
69 $scons usedebug=yes usempi=no docs || finish FAILURE "Could not run scons docs"
70 scp -r release/doc/* shake200:/home/www/esys/esys13/nightly || finish FAILURE "Could not copy documentation to nightly area"
71
72 echo "Cleaning up"
73
74 finish SUCCESS "Successfully ran 'scons docs' on `hostname`"
75

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26