#!/bin/sh

export DESTDIR=${PWD}/tmp
mkdir $DESTDIR
export PATH=/usr/local/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/lib:$DESTDIR/usr/lib
cd cvsnt
make distclean
./configure --with-pic --prefix=/usr --bindir=/usr/local/bin --libdir=/usr/local/lib
make DESTDIR=${DESTDIR}
make install DESTDIR=${DESTDIR}
BUILD=`${DESTDIR}/usr/local/bin/cvs ver -q`
cd ..
./make_package $BUILD 32
rm -rf $DESTDIR
