aboutsummaryrefslogblamecommitdiffstats
path: root/scripts/makedist.sh
blob: 7f8624d8ff59158e835b253d9721455453310250 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                        
                                           
              


                           









                      
                                           
                   

                    
  
#!/bin/sh
PWD=`pwd`

## If we're not in the scripts directory
## assume the base directory.
if test "`basename $PWD`" = "scripts"; then
	cd ../
else
	MYOLDPWD=`pwd`
	cd `dirname $0`/../
fi

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

if test "`basename $PWD`" = "scripts"; then
	cd contrib/
else
	cd $MYOLDPWD
fi