]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
build: Move wrapped scripts in "bin" directory
authorMathieu Lirzin <mthl@gnu.org>
Tue, 29 Aug 2017 09:27:52 +0000 (11:27 +0200)
committerMathieu Lirzin <mthl@gnu.org>
Tue, 29 Aug 2017 10:27:11 +0000 (12:27 +0200)
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.

.gitignore
Makefile.am
bin/Makefile.inc
bin/wrap-aclocal.in [moved from t/wrap/aclocal.in with 100% similarity]
bin/wrap-automake.in [moved from t/wrap/automake.in with 100% similarity]
configure.ac
t/Makefile.inc
t/ax/test-defs.in
t/get-sysconf.sh

index 19da02f71233b83af498610b13277094523c5c5d..56bdce2c6c3d5d31b53f0472b20d536929670fa5 100644 (file)
@@ -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
index cfe4dd40d3d69e1df4e3597146b3cd75159d356d..65787e0306fe2ee787b12ab21ab78b48eabc3212 100644 (file)
@@ -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.
index 102dec9fced6c215941f2440cbedd8e4f4194f57..69a744d8714fd897a3112168d716bb3bc10ef57c 100644 (file)
 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
similarity index 100%
rename from t/wrap/aclocal.in
rename to bin/wrap-aclocal.in
similarity index 100%
rename from t/wrap/automake.in
rename to bin/wrap-automake.in
index 30ba7d97bd50eca71421eb091442a15a817ea2ab..c9c257b376300ac1de81a7ba95bd538e044a7367 100644 (file)
@@ -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
index 708e9339775fba5c12b4002b413c4dfb2e0e58d6..936108ed6fe12c5ab829c63d3891ffb09b8e2b9b 100644 (file)
@@ -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 \
index 2465c61c1bb709ec9cfa31b0c76ee455012cb10e..b4a690fc61dddf6db255192a7a5a4dc91ac353fe 100644 (file)
@@ -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
index 986c1dd362efac340b93c5821fbc5d82fe74ede4..a768b47695c52d571776c4a1bb78fe831f7642c2 100644 (file)
@@ -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