mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
traces: display the Bison version
* src/main.c (main): When traces are enabled, display the Bison version. * tests/conflicts.at, tests/report.at, tests/sets.at: Use AT_PACKAGE_VERSION (for package.m4) instead of post-processing the output.
This commit is contained in:
@@ -578,8 +578,8 @@ State 19
|
||||
|
||||
|
||||
|
||||
AT_CHECK([sed -e '1s/GNU Bison .*\.$/GNU Bison VERSION./' input.gv], [],
|
||||
[[// Generated by GNU Bison VERSION.
|
||||
AT_CHECK([cat input.gv], [],
|
||||
[[// Generated by GNU Bison ]AT_PACKAGE_VERSION[.
|
||||
// Report bugs to <bug-bison@gnu.org>.
|
||||
// Home page: <https://www.gnu.org/software/bison/>.
|
||||
|
||||
@@ -672,10 +672,10 @@ digraph "input.yy"
|
||||
]])
|
||||
|
||||
|
||||
AT_CHECK([[sed -e 's/bison-xml-report version="[^"]*"/bison-xml-report version="VERSION"/g' input.xml]], [],
|
||||
AT_CHECK([[cat input.xml]], [],
|
||||
[[<?xml version="1.0"?>
|
||||
|
||||
<bison-xml-report version="VERSION" bug-report="bug-bison@gnu.org" url="https://www.gnu.org/software/bison/">
|
||||
<bison-xml-report version="]AT_PACKAGE_VERSION[" bug-report="bug-bison@gnu.org" url="https://www.gnu.org/software/bison/">
|
||||
|
||||
<filename>input.yy</filename>
|
||||
|
||||
@@ -1140,7 +1140,7 @@ AT_CHECK([[sed -e 's/bison-xml-report version="[^"]*"/bison-xml-report version="
|
||||
]])
|
||||
|
||||
# Check HTML output.
|
||||
AT_CHECK([[sed -e 's/GNU Bison [0-9][-.0-9a-z]*/GNU Bison VERSION/g' input.html]], [],
|
||||
AT_CHECK([[cat input.html]], [],
|
||||
[[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:bison="https://www.gnu.org/software/bison/">
|
||||
@@ -1492,7 +1492,7 @@ AT_CHECK([[sed -e 's/GNU Bison [0-9][-.0-9a-z]*/GNU Bison VERSION/g' input.html]
|
||||
|
||||
<div id="footer"><hr />This document was generated using
|
||||
<a href="https://www.gnu.org/software/bison/" title="GNU Bison">
|
||||
GNU Bison VERSION</a>
|
||||
GNU Bison ]AT_PACKAGE_VERSION[</a>
|
||||
XML Automaton Report.<br />
|
||||
Verbatim copying and distribution of this entire page is
|
||||
permitted in any medium, provided this notice is preserved.</div></body>
|
||||
@@ -1902,8 +1902,8 @@ State 27
|
||||
|
||||
|
||||
|
||||
AT_CHECK([sed -e '1s/GNU Bison .*\.$/GNU Bison VERSION./' input.gv], [],
|
||||
[[// Generated by GNU Bison VERSION.
|
||||
AT_CHECK([cat input.gv], [],
|
||||
[[// Generated by GNU Bison ]AT_PACKAGE_VERSION[.
|
||||
// Report bugs to <bug-bison@gnu.org>.
|
||||
// Home page: <https://www.gnu.org/software/bison/>.
|
||||
|
||||
@@ -2026,10 +2026,10 @@ digraph "input.yy"
|
||||
]])
|
||||
|
||||
|
||||
AT_CHECK([[sed -e 's/bison-xml-report version="[^"]*"/bison-xml-report version="VERSION"/g' input.xml]], [],
|
||||
AT_CHECK([[cat input.xml]], [],
|
||||
[[<?xml version="1.0"?>
|
||||
|
||||
<bison-xml-report version="VERSION" bug-report="bug-bison@gnu.org" url="https://www.gnu.org/software/bison/">
|
||||
<bison-xml-report version="]AT_PACKAGE_VERSION[" bug-report="bug-bison@gnu.org" url="https://www.gnu.org/software/bison/">
|
||||
|
||||
<filename>input.yy</filename>
|
||||
|
||||
@@ -2651,7 +2651,7 @@ if test x"$XSLTPROC" != x""; then
|
||||
AT_CHECK([[$XSLTPROC \
|
||||
`]]AT_SET_ENV[[ bison --print-datadir`/xslt/xml2xhtml.xsl \
|
||||
input.xml >input.html]])
|
||||
AT_CHECK([sed -e 's,GNU Bison .*</a>,GNU Bison VERSION</a>,' input.html], [],
|
||||
AT_CHECK([cat input.html], [],
|
||||
[[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:bison="https://www.gnu.org/software/bison/">
|
||||
@@ -3088,7 +3088,7 @@ if test x"$XSLTPROC" != x""; then
|
||||
|
||||
<div id="footer"><hr />This document was generated using
|
||||
<a href="https://www.gnu.org/software/bison/" title="GNU Bison">
|
||||
GNU Bison VERSION</a>
|
||||
GNU Bison ]AT_PACKAGE_VERSION[</a>
|
||||
XML Automaton Report.<br />
|
||||
Verbatim copying and distribution of this entire page is
|
||||
permitted in any medium, provided this notice is preserved.</div></body>
|
||||
@@ -3429,8 +3429,8 @@ State 8
|
||||
|
||||
|
||||
|
||||
AT_CHECK([sed -e '1s/GNU Bison .*\.$/GNU Bison VERSION./' input.gv], [],
|
||||
[[// Generated by GNU Bison VERSION.
|
||||
AT_CHECK([cat input.gv], [],
|
||||
[[// Generated by GNU Bison ]AT_PACKAGE_VERSION[.
|
||||
// Report bugs to <bug-bison@gnu.org>.
|
||||
// Home page: <https://www.gnu.org/software/bison/>.
|
||||
|
||||
@@ -3483,10 +3483,10 @@ digraph "input.y"
|
||||
]])
|
||||
|
||||
|
||||
AT_CHECK([[sed -e 's/bison-xml-report version="[^"]*"/bison-xml-report version="VERSION"/g' input.xml]], [],
|
||||
AT_CHECK([[cat input.xml]], [],
|
||||
[[<?xml version="1.0"?>
|
||||
|
||||
<bison-xml-report version="VERSION" bug-report="bug-bison@gnu.org" url="https://www.gnu.org/software/bison/">
|
||||
<bison-xml-report version="]AT_PACKAGE_VERSION[" bug-report="bug-bison@gnu.org" url="https://www.gnu.org/software/bison/">
|
||||
|
||||
<filename>input.y</filename>
|
||||
|
||||
@@ -3749,7 +3749,7 @@ AT_CHECK([[sed -e 's/bison-xml-report version="[^"]*"/bison-xml-report version="
|
||||
]])
|
||||
|
||||
|
||||
AT_CHECK([[sed -e 's/GNU Bison [0-9][-.0-9a-z]*/GNU Bison VERSION/g' input.html]], [],
|
||||
AT_CHECK([[cat input.html]], [],
|
||||
[[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:bison="https://www.gnu.org/software/bison/">
|
||||
@@ -3971,7 +3971,7 @@ AT_CHECK([[sed -e 's/GNU Bison [0-9][-.0-9a-z]*/GNU Bison VERSION/g' input.html]
|
||||
|
||||
<div id="footer"><hr />This document was generated using
|
||||
<a href="https://www.gnu.org/software/bison/" title="GNU Bison">
|
||||
GNU Bison VERSION</a>
|
||||
GNU Bison ]AT_PACKAGE_VERSION[</a>
|
||||
XML Automaton Report.<br />
|
||||
Verbatim copying and distribution of this entire page is
|
||||
permitted in any medium, provided this notice is preserved.</div></body>
|
||||
|
||||
Reference in New Issue
Block a user