diff options
Diffstat (limited to 'trunk/scripts/makedist.sh')
-rwxr-xr-x | trunk/scripts/makedist.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/trunk/scripts/makedist.sh b/trunk/scripts/makedist.sh new file mode 100755 index 000000000..d342cea3a --- /dev/null +++ b/trunk/scripts/makedist.sh @@ -0,0 +1,25 @@ +#!/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 |