autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: 13-m4-txt.patch


From: Akim Demaille
Subject: FYI: 13-m4-txt.patch
Date: 31 Oct 2000 09:46:04 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * autoupdate.sh (m4.txt): Use `dumpdef' and m4 to build it.

Index: autoupdate.sh
--- autoupdate.sh Sun, 29 Oct 2000 22:50:40 +0100 akim (ace/11_autoupdate 1.27 
666)
+++ autoupdate.sh Tue, 31 Oct 2000 02:33:05 +0100 akim (ace/11_autoupdate 1.27 
666)
@@ -206,20 +206,10 @@
 # Real work starts here.  #
 # ----------------------- #

-# m4_builtins -- the builtins of m4.
-m4_builtins="\
-  __file__ __gnu__ __line__ __unix__ builtin changecom changequote
-  changesyntax debugfile debugmode decr define defn divert divnum dnl
-  dumpdef errprint esyscmd eval format ifdef ifelse include incr index
-  indir len m4exit m4wrap maketemp patsubst popdef pushdef regexp
-  shift sinclude substr symbols syscmd sysval traceoff traceon
-  translit undefine undivert"
-
 # m4.txt -- the builtins of m4.
-for i in $m4_builtins
-do
-  echo "$i" >>$tmp/m4.txt
-done
+echo dumpdef |
+  $M4 2>&1 >/dev/null |
+  sed -n 's/:.*//p' >$tmp/m4.txt

 # m4.m4 -- enable the m4 builtins.
 $sed 's/^.*$/_au_define([&], _au_defn([_au_&]))/' $tmp/m4.txt >$tmp/m4.m4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]