ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/javadoc.sh
Revision: 1.1
Committed: Fri Mar 9 00:23:22 2001 UTC (23 years, 2 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
Log Message:
Various shell scripts used around the project.

File Contents

# User Rev Content
1 tdb 1.1 #!/bin/sh
2    
3     #---------------------------------------------------------
4     # javadoc.sh
5     #
6     # Script to setup all the javadoc pages for the CGI.
7     # Written by Tim Bishop [tdb1@ukc.ac.uk] 27/02/2001
8     #
9     # Copyright i-Scream, 2000
10     # http://www.i-scream.org.uk
11     #---------------------------------------------------------
12    
13     ## settings
14    
15     # cvs path
16     CVS="/home/cut/tdb1/bin/cvs"
17    
18     # gnutar path
19     GNUTAR="/usr/local/bin/gnutar"
20    
21     # gzip path
22     GZIP="/usr/local/bin/gzip"
23    
24     # gnumake path
25     GNUMAKE="/usr/local/bin/gnumake"
26    
27     # cvs repository
28     CVSROOT="/usr/local/proj/co600_10/cvs"
29    
30     # temporary checkout directory (checked out modules already)
31     CHECKOUTDIR="/home/cut/tdb1/cvsscripttemp"
32    
33     # javadoc archive directory
34     JAVADOCDIR="/usr/local/proj/co600_10/javadoc"
35    
36     # configure script
37     CONFIGURE="./configure"
38    
39    
40     ## code
41    
42     # update the source
43     cd ${CHECKOUTDIR}
44     ${CVS} -d ${CVSROOT} -Q update -d
45    
46     # bodge to make this easier :)
47     cd ${CHECKOUTDIR}/source
48     ln -s client/conient conient
49    
50     MODULES="server conient corbaservices"
51    
52     for MOD in ${MODULES}; do
53    
54     # cleanup
55     rm -f ${JAVADOCDIR}/${MOD}.tar.gz
56     # build docs
57     cd ${CHECKOUTDIR}/source/${MOD}
58     ${CONFIGURE}
59     ${GNUMAKE} javadoc
60     rm -Rf ${MOD}
61     mv doc ${MOD}
62     # package
63     ${GNUTAR} -cvf ${JAVADOCDIR}/${MOD}.tar ${MOD}
64     ${GZIP} -9 ${JAVADOCDIR}/${MOD}.tar
65     # cleanup
66     rm -Rf ${MOD}
67     ${GNUMAKE} distclean;
68    
69     done
70    
71     # unbodge
72     cd ${CHECKOUTDIR}/source
73     rm conient