makedist.sh 342 Bytes
Newer Older
1 2 3 4 5
#!/bin/sh
PWD=`pwd`

## If we're not in the scripts directory
## assume the base directory.
6
if test "`basename $PWD`" = "scripts"; then
7
	cd ../
8 9 10
else
	MYOLDPWD=`pwd`
	cd `dirname $0`/../
11 12 13 14 15 16 17 18 19 20
fi

if test -e Makefile
then
	make distclean
fi
./autogen.sh
make
make dist

21
if test "`basename $PWD`" = "scripts"; then
22
	cd contrib/
23 24
else
	cd $MYOLDPWD
25
fi