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.10 by tdb, Sat Mar 20 20:08:04 2004 UTC

# Line 32 | Line 32 | iscreambuild() {
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
# Line 72 | Line 71 | gnubuild() {
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
# Line 135 | Line 150 | for PROG in $PROGS; do
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines