ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/builds.sh
Revision: 1.3
Committed: Wed Mar 12 09:51:02 2003 UTC (21 years, 8 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
State: FILE REMOVED
Log Message:
Update build script to be much more modern. And tidy up some old scripts.

File Contents

# Content
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 ln -s reports/php webreports
52 ln -s reports/DBReporter dbreporter
53
54 MODULES="server conient corbaservices winhost ihost webreports dbreporter"
55
56 for MOD in ${MODULES}; do
57
58 # cleanup
59 rm -f ${BUILDDIR}/iscream-${MOD}-${TAG}.tar.gz
60 # build docs
61 cd ${CHECKOUTDIR}/source/${MOD}
62 ${CONFIGURE}
63 ${GNUMAKE} cvsbuild rev=${TAG}
64 mv build/iscream-${MOD}-${TAG}.tar.gz ${BUILDDIR}
65 mv build/iscream-${MOD}-${TAG}.zip ${BUILDDIR}
66 # cleanup
67 ${GNUMAKE} distclean;
68
69 done
70
71 # unbodge
72 cd ${CHECKOUTDIR}/source
73 rm conient
74 rm winhost
75 rm ihost
76 rm webreports
77 rm dbreporter