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

Diff of /trunk/autodocs.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/autodocs.sh revision 1218 by ksteube, Wed Jul 18 01:01:41 2007 UTC temp/autodocs.sh revision 1387 by trankine, Fri Jan 11 07:45:26 2008 UTC
# Line 4  Line 4 
4  # in the proper place so the ESSCC twiki can find it. The build command is  # in the proper place so the ESSCC twiki can find it. The build command is
5  #   scons docs  #   scons docs
6    
7  # Run this nightly on shake71 via cron  # Run this nightly on shake71 via cron, such as at 1:00 AM every night, with
8    # 0      1    *    *     0-6      /home/Work/Documentation_Escript/autodocs.sh >& /home/Work/Documentation_Escript/log
9    
10    # This will have an error occasionally because svn checkout fails.
11    # The problem may be that the certificate has expired.  If that's the
12    # case try an svn checkout (or svn list) by hand and accept the
13    # certificate.  Then the problem will be resolved.
14    
15  # Requires:  # Requires:
16  #   svn checkout from shake200  #   svn checkout from shake200
# Line 17  Line 23 
23  DIR="/home/Work/Documentation_Escript"  DIR="/home/Work/Documentation_Escript"
24    
25  START=`date '+%Y/%m/%d %H:%M'`  START=`date '+%Y/%m/%d %H:%M'`
26    RunDate=`date '+%Y_%m_%d'`
27    
28    scons='/home/Work/scons-0.96.92/bin/scons'
29    
30  finish () {  finish () {
31    # state will be 'FAILURE' or 'SUCCESS'    # state will be 'FAILURE' or 'SUCCESS'
# Line 26  finish () { Line 35  finish () {
35    cd $DIR    cd $DIR
36    ### /bin/rm -rf sandbox    ### /bin/rm -rf sandbox
37    END=`date '+%Y/%m/%d %H:%M'`    END=`date '+%Y/%m/%d %H:%M'`
38    cat << END_MSG | mail -s "ESYS_TESTS docs $START $state" k.steube@uq.edu.au    cat << END_MSG | mail -s "ESYS_TESTS docs $RunDate $state" k.steube@uq.edu.au
39  $2.  $2.
40  The tests ran from $START to $END  The tests ran from $START to $END
41    See the log file /home/Work/Documentation_Escript/log for info
42  This mail was sent by $0  This mail was sent by $0
43  running as $USER on `hostname`.  running via cron as $USER on `hostname`.
44  END_MSG  END_MSG
45    if [ "x$state" = "xFAILURE" ]; then    if [ "x$state" = "xFAILURE" ]; then
46      exit 1      exit 1
# Line 42  umask 022 Line 52  umask 022
52    
53  cd $DIR         || finish FAILURE "Could not cd to $DIR"  cd $DIR         || finish FAILURE "Could not cd to $DIR"
54    
55  test -d sandbox     && finish FAILURE "The documentation sandbox already exists in $DIR/sandbox"  /bin/rm -rf sandbox
56  mkdir sandbox       || finish FAILURE "Could not mkdir sandbox"  mkdir sandbox       || finish FAILURE "Could not mkdir sandbox"
57  cd sandbox      || finish FAILURE "Could not cd to sandbox"  cd sandbox      || finish FAILURE "Could not cd to sandbox"
58    
# Line 58  echo "Generating documentation" Line 68  echo "Generating documentation"
68    
69  cd trunk                            || finish FAILURE "Could not cd to trunk"  cd trunk                            || finish FAILURE "Could not cd to trunk"
70  mkdir release release/doc                   || finish FAILURE "Could not create release directory"  mkdir release release/doc                   || finish FAILURE "Could not create release directory"
71  scons dodebug=yes useMPI=no docs                || finish FAILURE "Could not run scons docs"  $scons dodebug=yes useMPI=no docs               || finish FAILURE "Could not run scons docs"
72  scp -r release/doc/* shake200:/home/www/esys/esys13/nightly || finish FAILURE "Could not copy documentation to nightly area"  scp -r release/doc/* shake200:/home/www/esys/esys13/nightly || finish FAILURE "Could not copy documentation to nightly area"
73    
74  echo "Cleaning up"  echo "Cleaning up"

Legend:
Removed from v.1218  
changed lines
  Added in v.1387

  ViewVC Help
Powered by ViewVC 1.1.26