ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/builds.sh
Revision: 1.1
Committed: Fri Mar 9 00:23:22 2001 UTC (23 years, 6 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     # builds.sh
5     #
6     # Script to generate builds from code.
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     # gnumake path
19     GNUMAKE="/usr/local/bin/gnumake"
20    
21     # cvs repository
22     CVSROOT="/usr/local/proj/co600_10/cvs"
23    
24     # temporary checkout directory (checked out modules already)
25     CHECKOUTDIR="/home/cut/tdb1/cvsscripttemp"
26    
27     # build directory
28     BUILDDIR="/usr/local/proj/co600_10/builds"
29    
30     # configure script
31     CONFIGURE="./configure"
32    
33     # tag to build
34     TAG="HEAD"
35    
36    
37     ## code
38    
39     # cleanup --extra
40     rm -f ${BUILDDIR}/*
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     ln -s host/winhost winhost
50     ln -s host/ihost ihost
51    
52     MODULES="server conient corbaservices winhost ihost"
53    
54     for MOD in ${MODULES}; do
55    
56     # cleanup
57     rm -f ${BUILDDIR}/iscream-${MOD}-${TAG}.tar.gz
58     # build docs
59     cd ${CHECKOUTDIR}/source/${MOD}
60     ${CONFIGURE}
61     ${GNUMAKE} cvsbuild rev=${TAG}
62     mv build/iscream-${MOD}-${TAG}.tar.gz ${BUILDDIR}
63     mv build/iscream-${MOD}-${TAG}.zip ${BUILDDIR}
64     # cleanup
65     ${GNUMAKE} distclean;
66    
67     done
68    
69     # unbodge
70     cd ${CHECKOUTDIR}/source
71     rm conient
72     rm winhost
73     rm ihost