ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/javadoc.sh
Revision: 1.2
Committed: Mon Mar 26 21:17:22 2001 UTC (23 years, 7 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Changes since 1.1: +4 -1 lines
Log Message:
Includes the reporting gizmos in the build stuff, and javadoc.

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 tdb 1.2 ln -s reports/DBReporter dbreporter
50 tdb 1.1
51 tdb 1.2 MODULES="server conient corbaservices dbreporter"
52 tdb 1.1
53     for MOD in ${MODULES}; do
54    
55     # cleanup
56     rm -f ${JAVADOCDIR}/${MOD}.tar.gz
57     # build docs
58     cd ${CHECKOUTDIR}/source/${MOD}
59     ${CONFIGURE}
60     ${GNUMAKE} javadoc
61     rm -Rf ${MOD}
62     mv doc ${MOD}
63     # package
64     ${GNUTAR} -cvf ${JAVADOCDIR}/${MOD}.tar ${MOD}
65     ${GZIP} -9 ${JAVADOCDIR}/${MOD}.tar
66     # cleanup
67     rm -Rf ${MOD}
68     ${GNUMAKE} distclean;
69    
70     done
71    
72     # unbodge
73     cd ${CHECKOUTDIR}/source
74     rm conient
75 tdb 1.2 rm dbreporter
76