aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorTadas Vilkeliskis <vilkeliskis.t@gmail.com>2013-10-25 16:34:50 -0400
committerTadas Vilkeliskis <vilkeliskis.t@gmail.com>2013-10-26 19:02:09 -0400
commit58f3d912e20abc57c1c68cfc28325a5d58034189 (patch)
tree93d93345c09809c606961fd9649cfa43bf1a8a38 /autogen.sh
parentce79f6da73ec063b35d4b0e2f30c44cdf199599c (diff)
csv parser
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..9e90913
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Script to generate all required files from a git checkout
+
+command -v libtool > /dev/null 2>&1
+if [ $? -ne 0 ]; then
+ echo "autogen.sh: error: could not find libtool. libtool is required to run autogen.sh." 1>&2
+ exit 1
+fi
+
+command -v autoreconf > /dev/null 2>&1
+
+if [ $? -ne 0 ]; then
+ echo "autogen.sh: error: could not find autoreconf. autoconf and automake are required to run autogen.sh." 1>&2
+ exit 1
+fi
+
+mkdir -p ./config
+if [ $? -ne 0 ]; then
+ echo "autogen.sh: error: could not create directory: ./config." 1>&2
+ exit 1
+fi
+
+autoreconf --install --force --verbose -I config
+if [ $? -ne 0 ]; then
+ echo "autogen.sh: error: autoreconf exited with status $?" 1>&2
+ exit 1
+fi