Ensure _AS_CLEANUP is defined.

* lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
* tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.

Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
Eric Blake 2008-10-07 12:00:02 -06:00
parent 7e1c6397cc
commit 6f106cdead
3 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2008-10-07 Eric Blake <ebb9@byu.net>
Ensure _AS_CLEANUP is defined.
* lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
* tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
Improve m4sh maintainability.
* lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
code change.

View File

@ -134,6 +134,13 @@ m4_define([_AS_BOURNE_COMPATIBLE],
])
# _AS_CLEANUP
# -----------
# Expanded as the last thing before m4sugar cleanup begins. Macros
# may append m4sh cleanup hooks to this as appropriate.
m4_define([_AS_CLEANUP])
# AS_COPYRIGHT(TEXT)
# ------------------
# Emit TEXT, a copyright notice, as a shell comment near the top of the

View File

@ -805,6 +805,7 @@ AT_DATA_M4SH([script.as], [[dnl
dnl Registered before AS_INIT's cleanups
m4_wrap([echo cleanup 1
])
m4_pushdef([_AS_SHELL_FN_SPY])dnl neutralize the spy, we don't care about it
AS_INIT
dnl Registered after AS_INIT's cleanups, thus goes to KILL diversion
m4_wrap([echo cleanup 2