21 lines
283 B
Bash
21 lines
283 B
Bash
|
#!/bin/sh
|
||
|
PWD=`pwd`
|
||
|
|
||
|
## If we're not in the scripts directory
|
||
|
## assume the base directory.
|
||
|
if test "`basename $PWD`" == "scripts"; then
|
||
|
cd ../
|
||
|
fi
|
||
|
|
||
|
if test -e Makefile
|
||
|
then
|
||
|
make distclean
|
||
|
fi
|
||
|
./autogen.sh
|
||
|
make
|
||
|
make dist
|
||
|
|
||
|
if test "`basename $PWD`" == "scripts"; then
|
||
|
cd contrib/
|
||
|
fi
|