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' |
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 |
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 |
|
|
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" |