/[escript]/branches/csiropost2.0/autodocs.sh
ViewVC logotype

Diff of /branches/csiropost2.0/autodocs.sh

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

revision 1218 by ksteube, Wed Jul 18 01:01:41 2007 UTC revision 1219 by ksteube, Wed Aug 1 00:39:47 2007 UTC
# Line 17  Line 17 
17  DIR="/home/Work/Documentation_Escript"  DIR="/home/Work/Documentation_Escript"
18    
19  START=`date '+%Y/%m/%d %H:%M'`  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 () {  finish () {
25    # state will be 'FAILURE' or 'SUCCESS'    # state will be 'FAILURE' or 'SUCCESS'
# Line 26  finish () { Line 29  finish () {
29    cd $DIR    cd $DIR
30    ### /bin/rm -rf sandbox    ### /bin/rm -rf sandbox
31    END=`date '+%Y/%m/%d %H:%M'`    END=`date '+%Y/%m/%d %H:%M'`
32    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
33  $2.  $2.
34  The tests ran from $START to $END  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  This mail was sent by $0
37  running as $USER on `hostname`.  running via cron as $USER on `hostname`.
38  END_MSG  END_MSG
39    if [ "x$state" = "xFAILURE" ]; then    if [ "x$state" = "xFAILURE" ]; then
40      exit 1      exit 1
# Line 42  umask 022 Line 46  umask 022
46    
47  cd $DIR         || finish FAILURE "Could not cd to $DIR"  cd $DIR         || finish FAILURE "Could not cd to $DIR"
48    
49  test -d sandbox     && finish FAILURE "The documentation sandbox already exists in $DIR/sandbox"  /bin/rm -rf sandbox
50  mkdir sandbox       || finish FAILURE "Could not mkdir sandbox"  mkdir sandbox       || finish FAILURE "Could not mkdir sandbox"
51  cd sandbox      || finish FAILURE "Could not cd to sandbox"  cd sandbox      || finish FAILURE "Could not cd to sandbox"
52    
# Line 58  echo "Generating documentation" Line 62  echo "Generating documentation"
62    
63  cd trunk                            || finish FAILURE "Could not cd to trunk"  cd trunk                            || finish FAILURE "Could not cd to trunk"
64  mkdir release release/doc                   || finish FAILURE "Could not create release directory"  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"  $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"  scp -r release/doc/* shake200:/home/www/esys/esys13/nightly || finish FAILURE "Could not copy documentation to nightly area"
67    
68  echo "Cleaning up"  echo "Cleaning up"

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

  ViewVC Help
Powered by ViewVC 1.1.26