aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/makedist.sh
blob: dca64d216ff2dd8ec3d459905b33e7b4e5969045 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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