#!/bin/shPWD=`pwd`## If we're not in the scripts directory## assume the base directory.iftest"`basename $PWD`"=="scripts";thencd ../
elseMYOLDPWD=`pwd`cd`dirname $0`/../
fiiftest -e Makefile
then
make distclean
fi
./autogen.sh
make
make dist
iftest"`basename $PWD`"=="scripts";thencd contrib/
elsecd$MYOLDPWDfi