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, such as at 1:00 AM every night, with |
# If this fails make sure you have logged in to the repository and can |
8 |
# 0 1 * * 0-6 /home/Work/Documentation_Escript/autodocs.sh >& /home/Work/Documentation_Escript/log |
# 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 |
# This will have an error occasionally because svn checkout fails. |
# Run this nightly on shake71 via cron using: |
12 |
# The problem may be that the certificate has expired. If that's the |
# 0 1 * * 0-6 /home/Work/EscriptDev/Documentation/autodocs.sh > /home/Work/EscriptDev/Documentation/log 2>&1 |
|
# case try an svn checkout (or svn list) by hand and accept the |
|
|
# certificate. Then the problem will be resolved. |
|
13 |
|
|
14 |
# Requires: |
# Requires: |
15 |
# svn checkout from shake200 |
# svn checkout from shake200 |
19 |
# latex |
# latex |
20 |
# latex2html |
# latex2html |
21 |
|
|
22 |
DIR="/home/Work/Documentation_Escript" |
DIR="/home/Work/EscriptDev/Documentation" |
23 |
|
|
24 |
START=`date '+%Y/%m/%d %H:%M'` |
START=`date '+%Y/%m/%d %H:%M'` |
25 |
RunDate=`date '+%Y_%m_%d'` |
RunDate=`date '+%Y_%m_%d'` |
26 |
|
|
27 |
scons='/home/Work/scons-0.96.92/bin/scons' |
scons='/home/ksteube/s/InstallArea/bin/scons' |
28 |
|
|
29 |
finish () { |
finish () { |
30 |
# state will be 'FAILURE' or 'SUCCESS' |
# state will be 'FAILURE' or 'SUCCESS' |
32 |
date |
date |
33 |
# Clean up the sandbox |
# Clean up the sandbox |
34 |
cd $DIR |
cd $DIR |
35 |
### /bin/rm -rf sandbox |
/bin/rm -rf sandbox |
36 |
END=`date '+%Y/%m/%d %H:%M'` |
END=`date '+%Y/%m/%d %H:%M'` |
37 |
cat << END_MSG | mail -s "ESYS_TESTS docs $RunDate $state" k.steube@uq.edu.au |
cat << END_MSG | mail -s "ESYS_TESTS docs $RunDate $state" k.steube@uq.edu.au |
38 |
$2. |
$2. |
39 |
The tests ran from $START to $END |
The tests ran from $START to $END |
40 |
See the log file /home/Work/Documentation_Escript/log for info |
See the log file $DIR/log for info |
41 |
This mail was sent by $0 |
This mail was sent by $0 |
42 |
running via cron as $USER on `hostname`. |
running via cron as $LOGNAME on `hostname`. |
43 |
END_MSG |
END_MSG |
44 |
if [ "x$state" = "xFAILURE" ]; then |
if [ "x$state" = "xFAILURE" ]; then |
45 |
exit 1 |
exit 1 |
55 |
mkdir sandbox || finish FAILURE "Could not mkdir sandbox" |
mkdir sandbox || finish FAILURE "Could not mkdir sandbox" |
56 |
cd sandbox || finish FAILURE "Could not cd to sandbox" |
cd sandbox || finish FAILURE "Could not cd to sandbox" |
57 |
|
|
58 |
echo "Checking out esys13/trunk" |
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" |
svn checkout https://shake200.esscc.uq.edu.au/svn/esys13/trunk || finish FAILURE "Could not checkout esys13/trunk" |
60 |
|
|
61 |
export PATH="/home/Work/latex2html-2002-2-1/bin:$PATH" |
export LD_LIBRARY_PATH="$DIR/sandbox/trunk/lib" |
|
export LD_LIBRARY_PATH="$DIR/sandbox/trunk/lib:/home/Work/VTK-4.4.2/lib" |
|
62 |
export PYTHONPATH="$DIR/sandbox/trunk" |
export PYTHONPATH="$DIR/sandbox/trunk" |
63 |
|
|
64 |
# Generate documentation |
# Generate documentation |