[PATCH] Adicionando script bootstrap.sh

Sergio Durigan Junior sergiodj en sergiodj.net
Dom Mar 9 17:09:04 UTC 2014


Opa,

Esse pequeno patch adiciona um bootstrap.sh no repositório, que
automatiza o processo de geração do configure e Makefile.  Pretendo
enviar patches pra melhorar o README e instruir o usuário a
compilar/utilizar o programa.

Falou,

-- 
Sergio

commit 23f1c51791279e72ac8a7a9a71839a8100ae4014
Author: Sergio Durigan Junior <sergiodj en sergiodj.net>
Date:   Sun Mar 9 14:03:36 2014 -0300

    Add bootstrap.sh script
    
    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.

diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755
index 0000000..41e9823
--- /dev/null
+++ b/bootstrap.sh
@@ -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
diff --git a/configure.ac b/configure.ac
index 3507dc2..c7a85dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,5 @@
 AC_INIT(rnetclient,2014.0,cascardo en minaslivre.org)
+AC_CONFIG_AUX_DIR(build-aux)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME,AC_PACKAGE_VERSION)
 AC_PROG_CC
 AC_PROG_INSTALL


Más información sobre la lista de distribución Softwares-impostos