aboutsummaryrefslogtreecommitdiff
path: root/scripts/makedist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makedist.sh')
-rwxr-xr-xscripts/makedist.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/makedist.sh b/scripts/makedist.sh
new file mode 100755
index 00000000..dca64d21
--- /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