From: Paul Eggert Date: Sun, 26 Nov 2023 17:04:05 +0000 (-0800) Subject: Remove m4_file_append X-Git-Tag: v2.72d~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11d8824daada20055c855f46ad7c45237c1ff455;p=thirdparty%2Fautoconf.git Remove m4_file_append * lib/m4sugar/m4sugar.m4 (m4_file_append): Remove. In 2000, this undocumented macro was left in by mistake even though all its callers were removed. Inspired by a bug report by Ally Petitt (sr#110961). --- diff --git a/lib/m4sugar/m4sugar.m4 b/lib/m4sugar/m4sugar.m4 index 810d2ea0a..729fc8441 100644 --- a/lib/m4sugar/m4sugar.m4 +++ b/lib/m4sugar/m4sugar.m4 @@ -3257,30 +3257,8 @@ m4_define([_m4_set_union], [m4_ifdef([_m4_set([$1],$2)], [], [,[$2]])]) -## ------------------- ## -## 16. File handling. ## -## ------------------- ## - - -# It is a real pity that M4 comes with no macros to bind a diversion -# to a file. So we have to deal without, which makes us a lot more -# fragile than we should. - - -# m4_file_append(FILE-NAME, CONTENT) -# ---------------------------------- -m4_define([m4_file_append], -[m4_syscmd([cat >>$1 <<_m4eof -$2 -_m4eof -]) -m4_if(m4_sysval, [0], [], - [m4_fatal([$0: cannot write: $1])])]) - - - ## ------------------------ ## -## 17. Setting M4sugar up. ## +## 16. Setting up M4sugar. ## ## ------------------------ ## # _m4_divert_diversion should be defined.