texlive[63238] Build/source/texk: ((u)p)bibtex: accept max_print_line
commits+takuji at tug.org
commits+takuji at tug.org
Fri May 6 09:23:56 CEST 2022
Revision: 63238
http://tug.org/svn/texlive?view=revision&revision=63238
Author: takuji
Date: 2022-05-06 09:23:56 +0200 (Fri, 06 May 2022)
Log Message:
-----------
((u)p)bibtex: accept max_print_line
Modified Paths:
--------------
trunk/Build/source/texk/kpathsea/ChangeLog
trunk/Build/source/texk/kpathsea/texmf.cnf
trunk/Build/source/texk/web2c/ChangeLog
trunk/Build/source/texk/web2c/Makefile.in
trunk/Build/source/texk/web2c/am/web.am
trunk/Build/source/texk/web2c/bibtex.ch
trunk/Build/source/texk/web2c/bibtex.test
trunk/Build/source/texk/web2c/ptexdir/ChangeLog
trunk/Build/source/texk/web2c/ptexdir/pbibtex.test
trunk/Build/source/texk/web2c/uptexdir/ChangeLog
trunk/Build/source/texk/web2c/uptexdir/upbibtex.ch
trunk/Build/source/texk/web2c/uptexdir/upbibtex.test
Added Paths:
-----------
trunk/Build/source/texk/web2c/tests/exampl.bbl
Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/kpathsea/ChangeLog 2022-05-06 07:23:56 UTC (rev 63238)
@@ -1,3 +1,9 @@
+2022-05-06 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
+
+ * texmf.cnf (max_print_line):
+ Now it applies to BibTeX family:
+ bibtex, pbibtex, upbibtex, bibtex8 and bibtexu.
+
2022-03-21 Karl Berry <karl at tug.org>
* TL'22 release.
Modified: trunk/Build/source/texk/kpathsea/texmf.cnf
===================================================================
--- trunk/Build/source/texk/kpathsea/texmf.cnf 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/kpathsea/texmf.cnf 2022-05-06 07:23:56 UTC (rev 63238)
@@ -864,6 +864,7 @@
% 30 < half_error_line < error_line - 15;
% 60 <= max_print_line;
% These apply to TeX, Metafont, and MetaPost.
+% "max_print_line" applies to BibTeX family.
error_line = 79
half_error_line = 50
max_print_line = 79
Modified: trunk/Build/source/texk/web2c/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/ChangeLog 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/ChangeLog 2022-05-06 07:23:56 UTC (rev 63238)
@@ -1,3 +1,10 @@
+2022-05-06 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
+
+ * bibtex.ch:
+ Apply max_print_line variable in kpathsea to ((u)p)BibTeX.
+ * bibtex.test, tests/exampl.bbl, am/web.am:
+ Update tests for ((u)p)BibTeX.
+
2022-04-30 Andreas Scherer <https://ascherer.github.io>
* weav-twill.ch,
Modified: trunk/Build/source/texk/web2c/Makefile.in
===================================================================
--- trunk/Build/source/texk/web2c/Makefile.in 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/Makefile.in 2022-05-06 07:23:56 UTC (rev 63238)
@@ -3200,19 +3200,19 @@
EXTRA_DIST = PROJECTS cftests cpascal.h help.h w2c/config.h \
triptrap-sh tangle.web tangle.ch tangleboot.pin cwebdir \
ctangleboot.cin cwebboot.cin tangle.test $(web_programs:=.web) \
- $(web_programs:=.ch) $(web_tests) tests/memdata1.bst \
- tests/memdata2.bst tests/memdata3.bst tests/bibtex-bigauth.aux \
- tests/bibtex-bigauth.bib tests/bibtex-bigauth.tex \
- tests/auxinclude.aux tests/auxinclude.bbl tests/auxinclude.bib \
- tests/auxinclude.tex tests/auxinclude2.aux \
- tests/auxinclude2.tex tests/allbib.aux tests/allbib.tex \
- tests/apalike.bst tests/badpl.pl tests/badtfm.tfm \
- tests/badvf.tfm tests/badvf.vf tests/badvpl.vpl \
- tests/batch.tex tests/check.log tests/cmr10.600gf \
- tests/cmr10.pk tests/cmr10.pl tests/cmr10.tfm tests/cmr7.tfm \
- tests/cmr8.tfm tests/cmti10.tfm tests/cmtt10.tfm \
- tests/cmtt8.tfm tests/dict tests/eight.tex tests/end.tex \
- tests/exampl.aux tests/exampl.tex tests/gray.tfm \
+ $(web_programs:=.ch) $(web_tests) tests/xampl.bib \
+ tests/memdata1.bst tests/memdata2.bst tests/memdata3.bst \
+ tests/bibtex-bigauth.aux tests/bibtex-bigauth.bib \
+ tests/bibtex-bigauth.tex tests/auxinclude.aux \
+ tests/auxinclude.bbl tests/auxinclude.bib tests/auxinclude.tex \
+ tests/auxinclude2.aux tests/auxinclude2.tex tests/allbib.aux \
+ tests/allbib.tex tests/apalike.bst tests/badpl.pl \
+ tests/badtfm.tfm tests/badvf.tfm tests/badvf.vf \
+ tests/badvpl.vpl tests/batch.tex tests/check.log \
+ tests/cmr10.600gf tests/cmr10.pk tests/cmr10.pl \
+ tests/cmr10.tfm tests/cmr7.tfm tests/cmr8.tfm tests/cmti10.tfm \
+ tests/cmtt10.tfm tests/cmtt8.tfm tests/dict tests/eight.tex \
+ tests/end.tex tests/exampl.aux tests/exampl.tex tests/gray.tfm \
tests/hello.tex tests/io.mf tests/just.texi tests/label.mp \
tests/label.mpx tests/logo8.tfm tests/longline.aux \
tests/longline.bib tests/longline.tex tests/longtfm.tex \
Modified: trunk/Build/source/texk/web2c/am/web.am
===================================================================
--- trunk/Build/source/texk/web2c/am/web.am 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/am/web.am 2022-05-06 07:23:56 UTC (rev 63238)
@@ -194,6 +194,7 @@
EXTRA_DIST += $(web_tests)
## bibtex.test
+EXTRA_DIST += tests/xampl.bib
DISTCLEANFILES += tests/xexampl.aux tests/xexampl.bbl tests/xexampl.blg
## tests/bibtex-longline-test.pl
DISTCLEANFILES += longline.aux longline.bbl longline.bib longline.blg
Modified: trunk/Build/source/texk/web2c/bibtex.ch
===================================================================
--- trunk/Build/source/texk/web2c/bibtex.ch 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/bibtex.ch 2022-05-06 07:23:56 UTC (rev 63238)
@@ -199,9 +199,13 @@
@x [still 14]
@!buf_size=1000; {maximum number of characters in an input line (or string)}
+@!min_print_line=3; {minimum \.{.bbl} line length: must be |>=3|}
+@!max_print_line=79; {the maximum: must be |>min_print_line| and |<buf_size|}
@y
@!BUF_SIZE=20000; {initial maximum number of characters in an input line
(or string)}
+@!min_print_line=3; {minimum \.{.bbl} line length: must be |>=3|}
+@!MAX_PRINT_LINE=60; {the maximum: must be |>min_print_line| and |<buf_size|}
@z
@x [still 14]
@@ -278,6 +282,7 @@
@y
@<Globals in the outer block@>=
@!pool_size: integer;
+@!max_print_line: integer;
@!max_bib_files: integer;
@!max_cites: integer;
@!wiz_fn_space: integer;
@@ -1747,6 +1752,7 @@
setup_bound_var (ENT_STR_SIZE)('ent_str_size')(ent_str_size);
setup_bound_var (GLOB_STR_SIZE)('glob_str_size')(glob_str_size);
setup_bound_var (MAX_STRINGS)('max_strings')(max_strings);
+setup_bound_var (MAX_PRINT_LINE)('max_print_line')(max_print_line);
@#
hash_size := max_strings;
if hash_size < HASH_SIZE then hash_size := HASH_SIZE;
Modified: trunk/Build/source/texk/web2c/bibtex.test
===================================================================
--- trunk/Build/source/texk/web2c/bibtex.test 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/bibtex.test 2022-05-06 07:23:56 UTC (rev 63238)
@@ -5,6 +5,7 @@
# You may freely use, modify and/or distribute this file.
test -d tests || mkdir -p tests
+rm -f tests/xexampl.*
cp $srcdir/tests/exampl.aux tests/xexampl.aux
@@ -12,4 +13,5 @@
BSTINPUTS=$srcdir/tests \
BIBINPUTS=$srcdir/tests \
./bibtex tests/xexampl || exit 1
+diff $srcdir/tests/exampl.bbl tests/xexampl.bbl || exit 2
Modified: trunk/Build/source/texk/web2c/ptexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/ptexdir/ChangeLog 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/ptexdir/ChangeLog 2022-05-06 07:23:56 UTC (rev 63238)
@@ -1,3 +1,7 @@
+2022-05-06 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
+
+ * pbibtex.test: Update a test.
+
2022-03-21 Karl Berry <karl at tug.org>
* TL'22 release.
Modified: trunk/Build/source/texk/web2c/ptexdir/pbibtex.test
===================================================================
--- trunk/Build/source/texk/web2c/ptexdir/pbibtex.test 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/ptexdir/pbibtex.test 2022-05-06 07:23:56 UTC (rev 63238)
@@ -5,6 +5,7 @@
# You may freely use, modify and/or distribute this file.
test -d ptests || mkdir -p ptests
+rm -f ptests/xexampl.*
cp $srcdir/tests/exampl.aux ptests/xexampl.aux
@@ -12,4 +13,5 @@
BSTINPUTS=$srcdir/tests \
BIBINPUTS=$srcdir/tests \
./pbibtex ptests/xexampl || exit 1
+diff $srcdir/tests/exampl.bbl ptests/xexampl.bbl || exit 2
Added: trunk/Build/source/texk/web2c/tests/exampl.bbl
===================================================================
--- trunk/Build/source/texk/web2c/tests/exampl.bbl (rev 0)
+++ trunk/Build/source/texk/web2c/tests/exampl.bbl 2022-05-06 07:23:56 UTC (rev 63238)
@@ -0,0 +1,212 @@
+\newcommand{\noopsort}[1]{} \newcommand{\printfirst}[2]{#1}
+ \newcommand{\singleletter}[1]{#1} \newcommand{\switchargs}[2]{#2#1}
+\begin{thebibliography}{}
+
+\bibitem[Aamport, 1986a]{article-minimal}
+Aamport, L.~A. (1986a).
+\newblock The gnats and gnus document preparation system.
+\newblock {\em \mbox{G-Animal's} Journal}.
+
+\bibitem[Aamport, 1986b]{article-full}
+Aamport, L.~A. (1986b).
+\newblock The gnats and gnus document preparation system.
+\newblock {\em \mbox{G-Animal's} Journal}, 41(7):73+.
+\newblock This is a full ARTICLE entry.
+
+\bibitem[Aamport, 1986c]{article-crossref}
+Aamport, L.~A. (1986c).
+\newblock The gnats and gnus document preparation system.
+\newblock In \cite{whole-journal}, pages 73+.
+\newblock This is a cross-referencing ARTICLE entry.
+
+\bibitem[GAJ, 1986]{whole-journal}
+GAJ (1986).
+\newblock {\em \mbox{G-Animal's} Journal}, 41(7).
+\newblock The entire issue is devoted to gnats and gnus (this entry is a
+ cross-referenced ARTICLE (journal)).
+
+\bibitem[Knuth, 1968]{whole-set}
+Knuth, D.~E. ({\noopsort{1973a}}{\switchargs{--90}{1968}}).
+\newblock {\em The Art of Computer Programming}.
+\newblock Four volumes. Addison-Wesley.
+\newblock Seven volumes planned (this is a cross-referenced set of BOOKs).
+
+\bibitem[Knuth, 1973a]{inbook-minimal}
+Knuth, D.~E. ({\noopsort{1973b}}1973a).
+\newblock {\em Fundamental Algorithms}, chapter 1.2.
+\newblock Addison-Wesley.
+
+\bibitem[Knuth, 1973b]{inbook-full}
+Knuth, D.~E. ({\noopsort{1973b}}1973b).
+\newblock {\em Fundamental Algorithms}, volume~1 of {\em The Art of Computer
+ Programming}, section 1.2, pages 10--119.
+\newblock Addison-Wesley, Reading, Massachusetts, second edition.
+\newblock This is a full INBOOK entry.
+
+\bibitem[Knuth, 1973c]{inbook-crossref}
+Knuth, D.~E. ({\noopsort{1973b}}1973c).
+\newblock {\em Fundamental Algorithms}, section 1.2.
+\newblock Volume~1 of \cite{whole-set}, second edition.
+\newblock This is a cross-referencing INBOOK entry.
+
+\bibitem[Knuth, 1981a]{book-full}
+Knuth, D.~E. ({\noopsort{1973c}}1981a).
+\newblock {\em Seminumerical Algorithms}, volume~2 of {\em The Art of Computer
+ Programming}.
+\newblock Addison-Wesley, Reading, Massachusetts, second edition.
+\newblock This is a full BOOK entry.
+
+\bibitem[Knuth, 1981b]{book-minimal}
+Knuth, D.~E. ({\noopsort{1973c}}1981b).
+\newblock {\em Seminumerical Algorithms}.
+\newblock Addison-Wesley.
+
+\bibitem[Knuth, 1981c]{book-crossref}
+Knuth, D.~E. ({\noopsort{1973c}}1981c).
+\newblock {\em Seminumerical Algorithms}.
+\newblock Volume~2 of \cite{whole-set}, second edition.
+\newblock This is a cross-referencing BOOK entry.
+
+\bibitem[Kn{\printfirst{v}{1987}}, ]{booklet-minimal}
+Kn{\printfirst{v}{1987}}.
+\newblock The programming of computer art.
+
+\bibitem[Knvth, 1988]{booklet-full}
+Knvth, J.~C. (1988).
+\newblock The programming of computer art.
+\newblock Vernier Art Center, Stanford, California.
+\newblock This is a full BOOKLET entry.
+
+\bibitem[Lincoll, 1977a]{incollection-minimal}
+Lincoll, D.~D. (1977a).
+\newblock Semigroups of recurrences.
+\newblock In {\em High Speed Computer and Algorithm Organization}. Academic
+ Press.
+
+\bibitem[Lincoll, 1977b]{incollection-full}
+Lincoll, D.~D. (1977b).
+\newblock Semigroups of recurrences.
+\newblock In Lipcoll, D.~J., Lawrie, D.~H., and Sameh, A.~H., editors, {\em
+ High Speed Computer and Algorithm Organization}, number~23 in Fast Computers,
+ part~3, pages 179--183. Academic Press, New York, third edition.
+\newblock This is a full INCOLLECTION entry.
+
+\bibitem[Lincoll, 1977c]{incollection-crossref}
+Lincoll, D.~D. (1977c).
+\newblock Semigroups of recurrences.
+\newblock In \cite{whole-collection}, pages 179--183.
+\newblock This is a cross-referencing INCOLLECTION entry.
+
+\bibitem[Lipcoll et~al., 1977]{whole-collection}
+Lipcoll, D.~J., Lawrie, D.~H., and Sameh, A.~H., editors (1977).
+\newblock {\em High Speed Computer and Algorithm Organization}.
+\newblock Number~23 in Fast Computers. Academic Press, New York, third edition.
+\newblock This is a cross-referenced BOOK (collection) entry.
+
+\bibitem[Manmaker, ]{manual-minimal}
+Manmaker.
+\newblock {\em The Definitive Computer Manual}.
+
+\bibitem[Manmaker, 1986]{manual-full}
+Manmaker, L. (1986).
+\newblock {\em The Definitive Computer Manual}.
+\newblock Chips-R-Us, Silicon Valley, silver edition.
+\newblock This is a full MANUAL entry.
+
+\bibitem[Masterly, 1988a]{mastersthesis-minimal}
+Masterly, {\'{E}}. (1988a).
+\newblock Mastering thesis writing.
+\newblock Master's thesis, Stanford University.
+
+\bibitem[Masterly, 1988b]{mastersthesis-full}
+Masterly, {\'{E}}. (1988b).
+\newblock Mastering thesis writing.
+\newblock Master's project, Stanford University, English Department.
+\newblock This is a full MASTERSTHESIS entry.
+
+\bibitem[Missilany, ]{misc-minimal}
+Missilany.
+\newblock This is a minimal MISC entry.
+
+\bibitem[Missilany, 1984]{misc-full}
+Missilany, J.-B. (1984).
+\newblock Handing out random pamphlets in airports.
+\newblock Handed out at O'Hare.
+\newblock This is a full MISC entry.
+
+\bibitem[Oaho et~al., 1983a]{inproceedings-minimal}
+Oaho, A.~V., Ullman, J.~D., and Yannakakis, M. (1983a).
+\newblock On notions of information transfer in {VLSI} circuits.
+\newblock In {\em Proc. Fifteenth Annual ACM Symposium on the Theory of
+ Computing}.
+
+\bibitem[Oaho et~al., 1983b]{inproceedings-full}
+Oaho, A.~V., Ullman, J.~D., and Yannakakis, M. (1983b).
+\newblock On notions of information transfer in {VLSI} circuits.
+\newblock In Oz, W.~V. and Yannakakis, M., editors, {\em Proc. Fifteenth Annual
+ ACM Symposium on the Theory of Computing}, number~17 in All ACM Conferences,
+ pages 133--139, Boston. The OX Association for Computing Machinery, Academic
+ Press.
+\newblock This is a full INPROCEDINGS entry.
+
+\bibitem[Oaho et~al., 1983c]{inproceedings-crossref}
+Oaho, A.~V., Ullman, J.~D., and Yannakakis, M. (1983c).
+\newblock On notions of information transfer in {VLSI} circuits.
+\newblock In \cite{whole-proceedings}, pages 133--139.
+\newblock This is a cross-referencing INPROCEEDINGS entry.
+
+\bibitem[OX{\singleletter{stoc}}, 1983a]{whole-proceedings}
+OX{\singleletter{stoc}} (1983a).
+\newblock {\em Proc. Fifteenth Annual Symposium on the Theory of Computing},
+ Boston. The OX Association for Computing Machinery.
+\newblock This is a cross-referenced PROCEEDINGS.
+
+\bibitem[OX{\singleletter{stoc}}, 1983b]{proceedings-minimal}
+OX{\singleletter{stoc}} (1983b).
+\newblock {\em Proc. Fifteenth Annual Symposium on the Theory of Computing}.
+
+\bibitem[Oz and Yannakakis, 1983]{proceedings-full}
+Oz, W.~V. and Yannakakis, M., editors (1983).
+\newblock {\em Proc. Fifteenth Annual Symposium on the Theory of Computing},
+ number~17 in All ACM Conferences, Boston. The OX Association for Computing
+ Machinery, Academic Press.
+\newblock This is a full PROCEEDINGS entry.
+
+\bibitem[Phony-Baloney, 1988a]{phdthesis-minimal}
+Phony-Baloney, F.~P. (1988a).
+\newblock {\em Fighting Fire with Fire: Festooning {F}rench Phrases}.
+\newblock PhD thesis, Fanstord University.
+
+\bibitem[Phony-Baloney, 1988b]{phdthesis-full}
+Phony-Baloney, F.~P. (1988b).
+\newblock {\em Fighting Fire with Fire: Festooning {F}rench Phrases}.
+\newblock {PhD} dissertation, Fanstord University, Department of French.
+\newblock This is a full PHDTHESIS entry.
+
+\bibitem[Terrific, 1988]{techreport-minimal}
+Terrific, T. (1988).
+\newblock An {$O(n \log n / \! \log\log n)$} sorting algorithm.
+\newblock Technical report, Fanstord University.
+
+\bibitem[T{\'{e}}rrific, 1988]{techreport-full}
+T{\'{e}}rrific, T. (1988).
+\newblock An {$O(n \log n / \! \log\log n)$} sorting algorithm.
+\newblock Wishful Research Result~7, Fanstord University, Computer Science
+ Department, Fanstord, California.
+\newblock This is a full TECHREPORT entry.
+
+\bibitem[{\"{U}}nderwood et~al., ]{unpublished-minimal}
+{\"{U}}nderwood, U., {\~N}et, N., and {\={P}}ot, P.
+\newblock Lower bounds for wishful research results.
+\newblock Talk at Fanstord University (this is a minimal UNPUBLISHED entry).
+
+\bibitem[{\"{U}}nderwood et~al., 1988]{unpublished-full}
+{\"{U}}nderwood, U., {\~N}et, N., and {\={P}}ot, P. (1988).
+\newblock Lower bounds for wishful research results.
+\newblock Talk at Fanstord University (this is a full UNPUBLISHED entry).
+
+\bibitem[Volume-2, ]{random-note-crossref}
+Volume-2.
+\newblock Volume~2 is listed under Knuth \cite{book-full}.
+
+\end{thebibliography}
Modified: trunk/Build/source/texk/web2c/uptexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/uptexdir/ChangeLog 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/uptexdir/ChangeLog 2022-05-06 07:23:56 UTC (rev 63238)
@@ -1,3 +1,8 @@
+2022-05-06 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
+
+ * upbibtex.ch: Fix bug on kpse_set_progname.
+ * upbibtex.test: Update a test.
+
2022-03-21 Karl Berry <karl at tug.org>
* TL'22 release.
Modified: trunk/Build/source/texk/web2c/uptexdir/upbibtex.ch
===================================================================
--- trunk/Build/source/texk/web2c/uptexdir/upbibtex.ch 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/uptexdir/upbibtex.ch 2022-05-06 07:23:56 UTC (rev 63238)
@@ -347,6 +347,12 @@
@ An element with all zeros always ends the list.
@z
+ at x
+begin kpse_set_program_name (argv[0], 'pbibtex');
+ at y
+begin kpse_set_program_name (argv[0], 'upbibtex');
+ at z
+
@x procedure x_is_kanji_str
procedure x_is_kanji_str;
label exit;
Modified: trunk/Build/source/texk/web2c/uptexdir/upbibtex.test
===================================================================
--- trunk/Build/source/texk/web2c/uptexdir/upbibtex.test 2022-05-06 07:23:50 UTC (rev 63237)
+++ trunk/Build/source/texk/web2c/uptexdir/upbibtex.test 2022-05-06 07:23:56 UTC (rev 63238)
@@ -5,6 +5,7 @@
# You may freely use, modify and/or distribute this file.
test -d uptests || mkdir -p uptests
+rm -f uptests/xexampl.*
cp $srcdir/tests/exampl.aux uptests/xexampl.aux
@@ -12,4 +13,5 @@
BSTINPUTS=$srcdir/tests \
BIBINPUTS=$srcdir/tests \
./upbibtex uptests/xexampl || exit 1
+diff $srcdir/tests/exampl.bbl uptests/xexampl.bbl || exit 2
More information about the tex-live-commits
mailing list.