summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-10-21 08:27:07 -0600
committerEric Blake <ebb9@byu.net>2008-10-21 08:27:07 -0600
commit91fd5ef60aab2766f639bb24630f7e1db95ae142 (patch)
treea2e94119771a735bc4afc5c6e050c91c515ac9ef
parentb8b7615a43af5cde9925856c36f352ece954daf8 (diff)
downloadautoconf-91fd5ef60aab2766f639bb24630f7e1db95ae142.tar.gz
Add banners to generated files.
* lib/autotest/general.m4 (AT_INIT): Make banners consistent. Signed-off-by: Eric Blake <ebb9@byu.net>
-rw-r--r--ChangeLog1
-rw-r--r--lib/autotest/general.m415
2 files changed, 7 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index b8472aed..e57150ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
(AS_INIT): Add new banners at strategic points.
* lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
make consistent with other banners.
+ * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
2008-10-20 Paolo Bonzini <bonzini@gnu.org>
diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
index 9e7df687..8df9395f 100644
--- a/lib/autotest/general.m4
+++ b/lib/autotest/general.m4
@@ -216,6 +216,9 @@ m4_define([AT_help_all], [])
m4_foreach([AT_name], [_AT_DEFINE_INIT_LIST], [m4_popdef(m4_defn([AT_name]))])
m4_wrap([_AT_FINISH])
AS_INIT[]dnl
+dnl We don't use m4sh's BODY diversion, but AS_INIT sticks a banner there.
+dnl This trick removes that banner, since it adds nothing to autotest.
+m4_divert_text([KILL], [m4_undivert([BODY])])dnl
AS_ME_PREPARE[]dnl
m4_divert_push([DEFAULTS])dnl
AT_COPYRIGHT(
@@ -243,9 +246,7 @@ esac
m4_divert_pop([BANNERS])dnl back to DEFAULTS
m4_divert_push([PREPARE_TESTS])dnl
-## --------------- ##
-## Shell functions ##
-## --------------- ##
+m4_text_box([Autotest shell functions.])
AS_FUNCTION_DESCRIBE([at_func_banner], [NUMBER],
[Output banner NUMBER, provided the testsuite is running multiple groups
@@ -372,9 +373,7 @@ else
}
fi
-## ---------------------- ##
-## End of shell functions ##
-## ---------------------- ##
+m4_text_box([End of autotest shell functions.])
m4_divert_pop([PREPARE_TESTS])dnl back to DEFAULTS
# Not all shells have the 'times' builtin; the subshell is needed to make
@@ -783,9 +782,7 @@ if test -n "$at_top_srcdir"; then
done
fi
-## ------------------- ##
-## Directory structure ##
-## ------------------- ##
+m4_text_box([Directory structure.])
# This is the set of directories and files used by this script
# (non-literals are capitalized):