1 |
tdb |
1.1 |
#!/bin/sh |
2 |
|
|
|
3 |
|
|
#--------------------------------------------------------- |
4 |
|
|
# nightly.sh |
5 |
|
|
# |
6 |
|
|
# Script to make javadoc and builds, then upload builds. |
7 |
|
|
# Does NOT upload javadoc or other webpages. |
8 |
|
|
# Written by Tim Bishop [tdb1@ukc.ac.uk] 27/02/2001 |
9 |
|
|
# |
10 |
|
|
# Copyright i-Scream, 2000 |
11 |
|
|
# http://www.i-scream.org.uk |
12 |
|
|
#--------------------------------------------------------- |
13 |
|
|
|
14 |
|
|
## settings |
15 |
|
|
|
16 |
|
|
# javadoc script |
17 |
|
|
JAVADOCSH="/usr/local/proj/co600_10/scripts/javadoc.sh" |
18 |
|
|
|
19 |
|
|
# build script |
20 |
|
|
BUILDSH="/usr/local/proj/co600_10/scripts/builds.sh" |
21 |
|
|
|
22 |
|
|
# build upload script |
23 |
|
|
BUILDFTPSH="/usr/local/proj/co600_10/scripts/builds-send-ftp.sh" |
24 |
|
|
|
25 |
|
|
# builds dir |
26 |
|
|
BUILDDIR="/usr/local/proj/co600_10/builds" |
27 |
|
|
|
28 |
|
|
# password file |
29 |
|
|
FTPPW="/usr/local/proj/co600_10/scripts/ftppw" |
30 |
|
|
|
31 |
|
|
## code |
32 |
|
|
|
33 |
|
|
# run javadoc and build scripts |
34 |
|
|
${JAVADOCSH} |
35 |
|
|
${BUILDSH} |
36 |
|
|
|
37 |
|
|
# upload the build files |
38 |
|
|
${BUILDFTPSH} `cat ${FTPPW}` |
39 |
|
|
|
40 |
|
|
# clean the builds directory |
41 |
|
|
rm -f ${BUILDDIR}/iscream-* |
42 |
|
|
|
43 |
|
|
echo "\nCompleted\n" |