32 |
|
cvs -d $CVSROOT update -dPr $TAG |
33 |
|
cvs2cl --stdout --no-wrap -r -t -w -S -g "-d $CVSROOT" -g "-q" -l "-r::$TAG" > build/ChangeLog |
34 |
|
fi |
35 |
< |
LIBRARIES= |
36 |
< |
eval `grep "LIBRARIES=" configure` |
35 |
> |
LIBRARIES=eval `grep "LIBRARIES=" configure` |
36 |
|
for LIB in $LIBRARIES; do |
37 |
|
fetchlib $LIB |
38 |
|
cp $DISTFILES/$LIB build/lib |
50 |
|
SOURCEDIR=$1 |
51 |
|
DESTDIR=$2 |
52 |
|
LIBTOOL=$3 |
53 |
+ |
CONFIGUREARGS=$4 |
54 |
|
cd $SOURCEDIR |
55 |
|
if [ "X$TAG" != "X" ]; then |
56 |
|
cvs -d $CVSROOT update -dPr $TAG |
63 |
|
libtoolize -c |
64 |
|
fi |
65 |
|
automake -a -c |
66 |
< |
./configure |
66 |
> |
./configure $CONFIGUREARGS |
67 |
|
gnumake dist |
68 |
|
TARBALL=`ls *.tar.gz` |
69 |
|
mkdir -p $DESTDIR |
71 |
|
gpg -abs --default-key=0x135D6B0A $DESTDIR/$TARBALL |
72 |
|
} |
73 |
|
|
74 |
+ |
# standard process for a python distutils build |
75 |
+ |
pydistbuild() { |
76 |
+ |
SOURCEDIR=$1 |
77 |
+ |
DESTDIR=$2 |
78 |
+ |
cd $SOURCEDIR |
79 |
+ |
if [ "X$TAG" != "X" ]; then |
80 |
+ |
cvs -d $CVSROOT update -dPr $TAG |
81 |
+ |
cvs2cl --stdout --no-wrap -r -t -w -S -g "-d $CVSROOT" -g "-q" -l "-r::$TAG" > ChangeLog |
82 |
+ |
fi |
83 |
+ |
python setup.py sdist |
84 |
+ |
TARBALL=`ls dist/*.tar.gz` |
85 |
+ |
mkdir -p $DESTDIR |
86 |
+ |
cp $TARBALL $DESTDIR |
87 |
+ |
gpg -abs --default-key=0x135D6B0A $DESTDIR/`basename $TARBALL` |
88 |
+ |
} |
89 |
+ |
|
90 |
|
# grab a required library off the web to maintain a local copy |
91 |
|
fetchlib() { |
92 |
|
LIB=$1 |
117 |
|
rm -Rf cms |
118 |
|
rm -Rf $BUILDS/* |
119 |
|
|
120 |
+ |
# make sure our local cvs is up-to-date |
121 |
+ |
/usr/local/packages/cvsup/bin/cvsup -L 2 /u1/i-scream/cvsup/supfile |
122 |
+ |
|
123 |
|
# pull the latest source from our local cvs |
124 |
|
echo "+ Updating CVS" |
125 |
|
cvs -d $CVSROOT checkout cms/source |
140 |
|
conient) |
141 |
|
iscreambuild $CMSSOURCE/conient $BUILDS/conient yes |
142 |
|
;; |
124 |
– |
dbreporter) |
125 |
– |
iscreambuild $CMSSOURCE/reports/DBReporter $BUILDS/dbreporter yes |
126 |
– |
;; |
143 |
|
rrdgraphing) |
144 |
|
iscreambuild $CMSSOURCE/reports/rrdgraphing $BUILDS/rrdgraphing no |
145 |
|
;; |
146 |
|
php) |
147 |
|
iscreambuild $CMSSOURCE/reports/php $BUILDS/php no |
148 |
|
;; |
133 |
– |
winhost) |
134 |
– |
iscreambuild $CMSSOURCE/host/winhost $BUILDS/winhost no |
135 |
– |
;; |
149 |
|
libstatgrab) |
150 |
|
gnubuild $CMSSOURCE/libstatgrab $BUILDS/libstatgrab yes |
151 |
|
;; |
152 |
|
ihost) |
153 |
< |
gnubuild $CMSSOURCE/host/ihost $BUILDS/ihost no |
153 |
> |
gnubuild $CMSSOURCE/ihost $BUILDS/ihost no --with-libstatgrab-prefix=/usr/local/packages/libstatgrab |
154 |
> |
;; |
155 |
> |
libukcprog) |
156 |
> |
gnubuild $CMSSOURCE/libukcprog $BUILDS/libukcprog yes |
157 |
> |
;; |
158 |
> |
idar) |
159 |
> |
gnubuild $CMSSOURCE/idar $BUILDS/idar no --with-curses-prefix=/usr/local/packages/ncurses |
160 |
> |
;; |
161 |
> |
pystatgrab) |
162 |
> |
pydistbuild $CMSSOURCE/pystatgrab $BUILDS/libstatgrab |
163 |
|
;; |
164 |
|
esac |
165 |
|
done |