ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/build.sh
Revision: 1.2
Committed: Mon Mar 10 19:44:27 2003 UTC (21 years, 2 months ago) by tdb
Content type: application/x-sh
Branch: MAIN
Changes since 1.1: +16 -1 lines
Log Message:
Updated to do libstatgrab.

File Contents

# User Rev Content
1 tdb 1.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 tdb 1.2 # $Id: build.sh,v 1.1 2003/02/16 18:53:50 tdb Exp $
8 tdb 1.1
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 tdb 1.2
92     echo "+ Making libstatgrab"
93    
94     cd $CMSSOURCE/libstatgrab
95     aclocal
96     autoheader
97     autoconf
98     libtoolize -c
99     automake -a -c
100     ./configure
101     gnumake dist
102     LIBSTATGRAB=`ls libstatgrab-*.tar.gz`
103     mkdir -p $BUILDS/libstatgrab
104     cp $LIBSTATGRAB $BUILDS/libstatgrab
105     gpg -abs --default-key=0x135D6B0A $BUILDS/libstatgrab/$LIBSTATGRAB
106 tdb 1.1
107     echo "+ Making ihost"
108    
109     cd $CMSSOURCE/host/ihost
110     aclocal
111     autoheader
112     autoconf
113     automake -a -c
114     ./configure
115     gnumake dist
116     IHOST=`ls ihost-*.tar.gz`
117     mkdir -p $BUILDS/ihost
118     cp $IHOST $BUILDS/ihost
119     gpg -abs --default-key=0x135D6B0A $BUILDS/ihost/$IHOST
120    
121     echo "+ Copying to snapshots web tree"
122    
123     cp -R $BUILDS/* $WEBSNAPSHOTS
124    
125     echo "+ Done"
126    
127     echo "+ Build completed on `date`"