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 |
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 |
118 |
|
rm -Rf $BUILDS/* |
119 |
|
|
120 |
|
# make sure our local cvs is up-to-date |
121 |
< |
/usr/local/packages/cvsup/bin/cvsup -L 0 /u1/i-scream/cvsup/supfile |
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" |
150 |
|
gnubuild $CMSSOURCE/libstatgrab $BUILDS/libstatgrab yes |
151 |
|
;; |
152 |
|
ihost) |
153 |
< |
gnubuild $CMSSOURCE/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 |