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