Add bootstrap.sh script
authorSergio Durigan Junior <sergiodj@sergiodj.net>
Sun, 9 Mar 2014 17:09:04 +0000 (14:09 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@cascardo.info>
Mon, 10 Mar 2014 11:33:37 +0000 (08:33 -0300)
This commit adds the bootstrap.sh script, which automates the processing
of configure.ac and Makefile.am files in order to generate the build
scripts.

bootstrap.sh [new file with mode: 0755]
configure.ac

diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755 (executable)
index 0000000..41e9823
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# These are the necessary steps to generate the configure scripts.
+
+set -x
+
+# Use "build-aux" as our aux dir, i.e., put the generated files there.
+AUX_DIR=build-aux
+
+test -d $AUX_DIR || mkdir -p $AUX_DIR
+
+aclocal
+autoconf
+automake --add-missing --copy --force --foreign
index 3507dc2..c7a85dc 100644 (file)
@@ -1,4 +1,5 @@
 AC_INIT(rnetclient,2014.0,cascardo@minaslivre.org)
+AC_CONFIG_AUX_DIR(build-aux)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME,AC_PACKAGE_VERSION)
 AC_PROG_CC
 AC_PROG_INSTALL