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

Annotation of /branches/arrexp_trunk2098/autodocs.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2111 - (hide annotations)
Mon Dec 1 01:16:18 2008 UTC (10 years, 6 months ago) by jfenwick
File MIME type: application/x-sh
File size: 2239 byte(s)
Doin' some experiments

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 ksteube 1619 # 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 ksteube 1218
11 ksteube 1619 # 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 ksteube 1337
14 ksteube 1218 # 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 ksteube 1619 DIR="/home/Work/EscriptDev/Documentation"
23 ksteube 1218
24     START=`date '+%Y/%m/%d %H:%M'`
25 ksteube 1219 RunDate=`date '+%Y_%m_%d'`
26 ksteube 1218
27 ksteube 1619 scons='/home/ksteube/s/InstallArea/bin/scons'
28 ksteube 1219
29 ksteube 1218 finish () {
30     # state will be 'FAILURE' or 'SUCCESS'
31     state="$1"
32     date
33     # Clean up the sandbox
34     cd $DIR
35 ksteube 1619 /bin/rm -rf sandbox
36 ksteube 1218 END=`date '+%Y/%m/%d %H:%M'`
37 ksteube 1219 cat << END_MSG | mail -s "ESYS_TESTS docs $RunDate $state" k.steube@uq.edu.au
38 ksteube 1218 $2.
39     The tests ran from $START to $END
40 ksteube 1619 See the log file $DIR/log for info
41 ksteube 1218 This mail was sent by $0
42 ksteube 1619 running via cron as $LOGNAME on `hostname`.
43 ksteube 1218 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 ksteube 1219 /bin/rm -rf sandbox
55 ksteube 1218 mkdir sandbox || finish FAILURE "Could not mkdir sandbox"
56     cd sandbox || finish FAILURE "Could not cd to sandbox"
57    
58 ksteube 1619 echo "Checking out esys13/trunk from Subversion"
59 ksteube 1218 svn checkout https://shake200.esscc.uq.edu.au/svn/esys13/trunk || finish FAILURE "Could not checkout esys13/trunk"
60    
61 ksteube 1619 export LD_LIBRARY_PATH="$DIR/sandbox/trunk/lib"
62 ksteube 1218 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 ksteube 1705 $scons usedebug=yes usempi=no docs || finish FAILURE "Could not run scons docs"
70 ksteube 1218 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