ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/build.sh
Revision: 1.1
Committed: Sun Feb 16 18:53:50 2003 UTC (21 years, 3 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
Log Message:
Build script for the new dists. This is being used to generate the
snapshot builds.

File Contents

# Content
1 #!/bin/sh
2
3 # Build script
4 # builds new-style dists from cvs source, and puts them
5 # in a single location for download (eg. snapshots)
6 #
7 # $Id$
8
9 # todo: ./configure on server pulls from net - make local?
10
11 STAGING=/u1/i-scream/staging
12
13 LOG=$STAGING/build.log
14 exec > $LOG 2>&1
15 set -x
16
17 CMSSOURCE=$STAGING/cms/source
18 BUILDS=$STAGING/builds
19 CVSROOT=/u1/i-scream/cvsmirror
20 WEBSNAPSHOTS=/u1/i-scream/httpd/htdocs/snapshots
21
22 echo "+ Build started on `date`"
23
24 echo "+ Cleaning up"
25
26 rm -Rf cms
27 rm -Rf $BUILDS/*
28
29 echo "+ Updating CVS"
30
31 cvs -d $CVSROOT checkout cms/source
32 cd $CMSSOURCE
33
34 echo "+ Building Server"
35
36 cd $CMSSOURCE/server
37 ./configure
38 gnumake dist-bin dest=$BUILDS/server
39 gnumake clean
40 gnumake dist dest=$BUILDS/server
41
42 echo "+ Building Util Package"
43
44 cd $CMSSOURCE/util
45 ./configure
46 gnumake dist-bin dest=$BUILDS/util
47 gnumake clean
48 gnumake dist dest=$BUILDS/util
49
50 echo "+ Building Corba Services Package"
51
52 cd $CMSSOURCE/corbaservices
53 ./configure
54 gnumake dist-bin dest=$BUILDS/corbaservices
55 gnumake clean
56 gnumake dist dest=$BUILDS/corbaservices
57
58 echo "+ Building Conient Package"
59
60 cd $CMSSOURCE/conient
61 ./configure
62 gnumake dist-bin dest=$BUILDS/conient
63 gnumake clean
64 gnumake dist dest=$BUILDS/conient
65
66 echo "+ Building DBReporter Package"
67
68 cd $CMSSOURCE/reports/DBReporter
69 ./configure
70 gnumake dist-bin dest=$BUILDS/dbreporter
71 gnumake clean
72 gnumake dist dest=$BUILDS/dbreporter
73
74 echo "+ Building RRD Graphing Package"
75
76 cd $CMSSOURCE/reports/rrdgraphing
77 ./configure
78 gnumake dist dest=$BUILDS/rrdgraphing
79
80 echo "+ Building PHP Pages Package"
81
82 cd $CMSSOURCE/reports/php
83 ./configure
84 gnumake dist dest=$BUILDS/php
85
86 echo "+ Building Winhost Package"
87
88 cd $CMSSOURCE/host/winhost
89 ./configure
90 gnumake dist dest=$BUILDS/winhost
91
92 echo "+ Making ihost"
93
94 cd $CMSSOURCE/host/ihost
95 aclocal
96 autoheader
97 autoconf
98 automake -a -c
99 ./configure
100 gnumake dist
101 IHOST=`ls ihost-*.tar.gz`
102 mkdir -p $BUILDS/ihost
103 cp $IHOST $BUILDS/ihost
104 gpg -abs --default-key=0x135D6B0A $BUILDS/ihost/$IHOST
105
106 echo "+ Copying to snapshots web tree"
107
108 cp -R $BUILDS/* $WEBSNAPSHOTS
109
110 echo "+ Done"
111
112 echo "+ Build completed on `date`"