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.7 by tdb, Sat Mar 29 19:28:37 2003 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 51 | Line 50 | gnubuild() {
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
# Line 63 | Line 63 | gnubuild() {
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
# Line 71 | 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 101 | Line 117 | echo "+ Cleaning up"
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
# Line 131 | 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
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