mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-17 14:01:27 +08:00
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
combination of Awk and sed to replace $LINENO.
This commit is contained in:
parent
41347f082c
commit
42b48aec23
@ -1,3 +1,8 @@
|
||||
2001-10-04 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
|
||||
combination of Awk and sed to replace $LINENO.
|
||||
|
||||
2001-10-02 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* doc/autoconf.texi (Limitations of Builtins): You can't use
|
||||
|
@ -143,12 +143,12 @@ if test "x$as_lineno_1" = "x$as_lineno_2" ||
|
||||
!= x$as_me.lineno; then
|
||||
# Be sure to write the pattern so that it doesn't replace itself:
|
||||
# it must not match itself.
|
||||
awk '{
|
||||
if ($[0] ~ /[[$]]LINENO/)
|
||||
while (sub (/[[$]]LINENO/, NR))
|
||||
continue
|
||||
print
|
||||
}' <$as_myself >$as_me.lineno
|
||||
awk <$as_myself '
|
||||
/[[$]]LINENO/ { printf "%d:", NR }
|
||||
{ print }
|
||||
' |
|
||||
sed ['/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/'] \
|
||||
>$as_me.lineno
|
||||
chmod +x $as_me.lineno
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user