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