ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/shell/build.sh
(Generate patch)

Comparing misc/scripts/shell/build.sh (file contents):
Revision 1.9 by tdb, Tue Feb 10 20:28:13 2004 UTC vs.
Revision 1.12 by tdb, Sun Mar 21 19:20:34 2004 UTC

# Line 20 | Line 20 | BUILDS=$STAGING/builds
20   DISTFILES=$STAGING/distfiles
21   CVSROOT=/u1/i-scream/cvsmirror
22   WEBSNAPSHOTS=/u1/i-scream/httpd/htdocs/snapshots
23 < LIBURL=http://www.i-scream.org.uk/downloads/lib
23 > LIBURL=http://www.i-scream.org/pub/i-scream/cms/lib
24  
25   # standard process for an i-scream style build
26   iscreambuild() {
# Line 31 | Line 31 | iscreambuild() {
31      if [ "X$TAG" != "X" ]; then
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 +    else
35 +        cvs2cl --stdout --no-wrap -r -t -w -S -g "-d $CVSROOT" -g "-q" > build/ChangeLog
36      fi
37 <    LIBRARIES=
36 <    eval `grep "LIBRARIES=" configure`
37 >    LIBRARIES=eval `grep "LIBRARIES=" configure`
38      for LIB in $LIBRARIES; do
39          fetchlib $LIB
40          cp $DISTFILES/$LIB build/lib
# Line 56 | Line 57 | gnubuild() {
57      if [ "X$TAG" != "X" ]; then
58          cvs -d $CVSROOT update -dPr $TAG
59          cvs2cl --stdout --no-wrap -r -t -w -S -g "-d $CVSROOT" -g "-q" -l "-r::$TAG" > ChangeLog
60 +    else
61 +        cvs2cl --stdout --no-wrap -r -t -w -S -g "-d $CVSROOT" -g "-q" > ChangeLog
62      fi
63      aclocal
64      autoheader
# Line 72 | Line 75 | gnubuild() {
75      gpg -abs --default-key=0x135D6B0A $DESTDIR/$TARBALL
76   }
77  
78 + # standard process for a python distutils build
79 + pydistbuild() {
80 +    SOURCEDIR=$1
81 +    DESTDIR=$2
82 +    cd $SOURCEDIR
83 +    if [ "X$TAG" != "X" ]; then
84 +        cvs -d $CVSROOT update -dPr $TAG
85 +        cvs2cl --stdout --no-wrap -r -t -w -S -g "-d $CVSROOT" -g "-q" -l "-r::$TAG" > ChangeLog
86 +    else
87 +        cvs2cl --stdout --no-wrap -r -t -w -S -g "-d $CVSROOT" -g "-q" > ChangeLog
88 +    fi
89 +    python setup.py sdist
90 +    TARBALL=`ls dist/*.tar.gz`
91 +    mkdir -p $DESTDIR
92 +    cp $TARBALL $DESTDIR
93 +    gpg -abs --default-key=0x135D6B0A $DESTDIR/`basename $TARBALL`
94 + }
95 +
96   # grab a required library off the web to maintain a local copy
97   fetchlib() {
98      LIB=$1
# Line 135 | Line 156 | for PROG in $PROGS; do
156              gnubuild $CMSSOURCE/libstatgrab $BUILDS/libstatgrab yes
157              ;;
158          ihost)
159 <            gnubuild $CMSSOURCE/ihost $BUILDS/ihost no
159 >            gnubuild $CMSSOURCE/ihost $BUILDS/ihost no --with-libstatgrab-prefix=/usr/local/packages/libstatgrab
160              ;;
161          libukcprog)
162              gnubuild $CMSSOURCE/libukcprog $BUILDS/libukcprog yes
163              ;;
164          idar)
165              gnubuild $CMSSOURCE/idar $BUILDS/idar no --with-curses-prefix=/usr/local/packages/ncurses
166 +            ;;
167 +        pystatgrab)
168 +            pydistbuild $CMSSOURCE/pystatgrab $BUILDS/pystatgrab
169              ;;
170      esac
171   done

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines