summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2017-08-29 11:27:52 +0200
committerMathieu Lirzin <mthl@gnu.org>2017-08-29 12:27:11 +0200
commitbb64793a95ea0576c817a8e01f0a689d9547de4a (patch)
tree51d47cffe798f1822e971fce095bacc4175c9029
parent5521219348c55af354878583b99c5f9d66d6d38a (diff)
downloadautomake-bb64793a95ea0576c817a8e01f0a689d9547de4a.tar.gz
build: Move wrapped scripts in "bin" directory
Those scripts are used both in the build process and for the tests, so it seems clearer to not hide them in "t/wrap" directory. * t/wrap/aclocal.in: Rename to ... * bin/wrap-aclocal.in: ... this. * t/wrap/automake.in: Rename to ... * bin/wrap-automake.in: ... this. * configure.ac: Generate "bin/aclocal-${APIVERSION}" and "bin/automake-${APIVERSION}" at configure time. * t/Makefile.inc (nodist_noinst_SCRIPTS): Move wrapped scripts ... * bin/Makefile.inc (nodist_noinst_SCRIPTS): ... here. * Makefile.am (extend_PATH): Use "bin" directory. * t/ax/test-defs.in (am_bindir): Likewise. * t/get-sysconf.sh: Likewise. * .gitignore: Update.
-rw-r--r--.gitignore4
-rw-r--r--Makefile.am2
-rw-r--r--bin/Makefile.inc4
-rw-r--r--bin/wrap-aclocal.in (renamed from t/wrap/aclocal.in)0
-rw-r--r--bin/wrap-automake.in (renamed from t/wrap/automake.in)0
-rw-r--r--configure.ac12
-rw-r--r--t/Makefile.inc4
-rw-r--r--t/ax/test-defs.in2
-rw-r--r--t/get-sysconf.sh4
9 files changed, 16 insertions, 16 deletions
diff --git a/.gitignore b/.gitignore
index 19da02f71..56bdce2c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,7 +13,9 @@
/config.status.lineno
/configure.lineno
/bin/aclocal
+/bin/aclocal-1.*
/bin/automake
+/bin/automake-1.*
/runtest
/doc/.dirstamp
/doc/automake*.info
@@ -41,8 +43,6 @@
/doc/web-manual
/lib/Automake/Config.pm
/test-suite.log
-/t/wrap/aclocal-1.*
-/t/wrap/automake-1.*
/t/ax/test-defs.sh
/t/ax/shell-no-trail-bslash
/t/ax/cc-no-c-o
diff --git a/Makefile.am b/Makefile.am
index cfe4dd40d..65787e030 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,7 +72,7 @@ generated_file_finalize = $(AM_V_at) \
# For some tests or targets, we need to have the just-build automake and
# aclocal scripts avaiable on PATH.
extend_PATH = \
- { PATH='$(abs_builddir)/t/wrap$(PATH_SEPARATOR)'$$PATH && export PATH; }
+ { PATH='$(abs_builddir)/bin$(PATH_SEPARATOR)'$$PATH && export PATH; }
# The master location for INSTALL is lib/INSTALL.
# This is where "make fetch" will install new versions.
diff --git a/bin/Makefile.inc b/bin/Makefile.inc
index 102dec9fc..69a744d87 100644
--- a/bin/Makefile.inc
+++ b/bin/Makefile.inc
@@ -20,6 +20,10 @@
bin_SCRIPTS = %D%/automake %D%/aclocal
CLEANFILES += $(bin_SCRIPTS)
+nodist_noinst_SCRIPTS += \
+ %D%/aclocal-$(APIVERSION) \
+ %D%/automake-$(APIVERSION)
+
# Used by maintainer checks and such.
automake_in = $(srcdir)/%D%/automake.in
aclocal_in = $(srcdir)/%D%/aclocal.in
diff --git a/t/wrap/aclocal.in b/bin/wrap-aclocal.in
index a624bcb16..a624bcb16 100644
--- a/t/wrap/aclocal.in
+++ b/bin/wrap-aclocal.in
diff --git a/t/wrap/automake.in b/bin/wrap-automake.in
index 1075346a1..1075346a1 100644
--- a/t/wrap/automake.in
+++ b/bin/wrap-automake.in
diff --git a/configure.ac b/configure.ac
index 30ba7d97b..c9c257b37 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,8 +67,8 @@ AC_SUBST([system_acdir], ["\${datadir}/aclocal"])
# aclocal and automake, hence the remake rules must use those versions
# as well. The extra quoting is to cater to cases when the build
# directory contains whitespace or shell metacharacters.
-ACLOCAL="\"`pwd`/t/wrap/aclocal-$APIVERSION\""
-AUTOMAKE="\"`pwd`/t/wrap/automake-$APIVERSION\""
+ACLOCAL="\"`pwd`/bin/aclocal-$APIVERSION\""
+AUTOMAKE="\"`pwd`/bin/automake-$APIVERSION\""
AC_PROG_LN_S
@@ -580,11 +580,11 @@ AC_SUBST([EXEEXT])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_LINKS([GNUmakefile:GNUmakefile])
-AC_CONFIG_FILES([t/wrap/aclocal-${APIVERSION}:t/wrap/aclocal.in],
- [chmod +x t/wrap/aclocal-${APIVERSION}],
+AC_CONFIG_FILES([bin/aclocal-${APIVERSION}:bin/wrap-aclocal.in],
+ [chmod +x bin/aclocal-${APIVERSION}],
[APIVERSION=$APIVERSION])
-AC_CONFIG_FILES([t/wrap/automake-${APIVERSION}:t/wrap/automake.in],
- [chmod +x t/wrap/automake-${APIVERSION}],
+AC_CONFIG_FILES([bin/automake-${APIVERSION}:bin/wrap-automake.in],
+ [chmod +x bin/automake-${APIVERSION}],
[APIVERSION=$APIVERSION])
AC_OUTPUT
diff --git a/t/Makefile.inc b/t/Makefile.inc
index 708e93397..936108ed6 100644
--- a/t/Makefile.inc
+++ b/t/Makefile.inc
@@ -110,10 +110,6 @@ EXTRA_DIST += $(contrib_TESTS)
# "make all". This makes it easier to run the test cases by
# hand after having simply configured and built the package.
-nodist_noinst_SCRIPTS += \
- %D%/wrap/aclocal-$(APIVERSION) \
- %D%/wrap/automake-$(APIVERSION)
-
dist_noinst_DATA += \
%D%/ax/test-init.sh \
%D%/ax/test-lib.sh \
diff --git a/t/ax/test-defs.in b/t/ax/test-defs.in
index 2465c61c1..b4a690fc6 100644
--- a/t/ax/test-defs.in
+++ b/t/ax/test-defs.in
@@ -56,7 +56,7 @@ case ${am_running_installcheck:=no} in
no)
am_amdir=$am_top_srcdir/lib/am
am_automake_acdir=$am_top_srcdir/m4
- am_bindir=$am_top_builddir/t/wrap
+ am_bindir=$am_top_builddir/bin
am_datadir=$am_top_srcdir
am_docdir=$am_top_srcdir/doc
am_pkgvdatadir=$am_top_srcdir/lib
diff --git a/t/get-sysconf.sh b/t/get-sysconf.sh
index 986c1dd36..a768b4769 100644
--- a/t/get-sysconf.sh
+++ b/t/get-sysconf.sh
@@ -55,8 +55,8 @@ $YACC --version || :
$YACC --help || :
cat "$am_top_builddir/config.log" || st=1
-cat "$am_top_builddir/t/wrap/aclocal-$APIVERSION" || st=1
-cat "$am_top_builddir/t/wrap/automake-$APIVERSION" || st=1
+cat "$am_top_builddir/bin/aclocal-$APIVERSION" || st=1
+cat "$am_top_builddir/bin/automake-$APIVERSION" || st=1
if test $st -eq 0; then
# This test SKIPs, so that all the information it has gathered and