> In attempting to modify and rebuild nbibtex, I find that modifying 'nbib.nw'
> and re-running noweb produces a bibtex.lua file rather than the
> bibtex.lua.in file that is shipped as part of the source. How the latter
> was generated from the former is never stated and the diff between the two
> is alarmingly large.
Yeah, you need to run notangle instead of noweb.
The easy way to do it is "./configure; make", here is an annotation
showing what makes what and when.
$ dpkg-checkbuilddeps
$ ./configure --prefix=/usr
Lua: OK
$ git clean -ndx .
Would remove Makefile
Would remove bibtex.lua
Would remove natbib.nbs
Would remove nbibtex.1
$ make -n
notangle -Rnbibtex.c -L nbib.nw | sed 's/<VERSION>/0.9.18/' > nbibtex.c
cc -I/usr/include/lua5.1 -DSHARE='"/usr/share/nbibtex"' -c -o nbibtex.o
nbibtex.c
notangle -Rnbib.c -L nbib.nw | sed 's/<VERSION>/0.9.18/' > nbib.c
cc -I/usr/include/lua5.1 -DSHARE='"/usr/share/nbibtex"' -c -o nbib.o
nbib.c
cc -I/usr/include/lua5.1 -DSHARE='"/usr/share/nbibtex"' -c -o
boyer-moore.o boyer-moore.c
cc nbibtex.o nbib.o boyer-moore.o -llua5.1 -o nbibtex
noweave nbib.nw | tail -n +2 | sed 's/<VERSION>/0.9.18/' > nbib.tex
rubber --warn=all --verbose --ps nbib.tex
> Further, the nbib.nw file is lacking patches applied to nbib.c directly
> (mostly whitespace, but also the s/getline/get_line/ rename); this despite
> the Makefile target to rebuild the .c files from the .nw.
Those .c files should be (re-)generated at build time.
They are not even in the debian development git repository.
> Speaking of, there appears to be some confusion of responsibility; the
> Makefile knows how to rebuild nbib{,tex}.c using notangle, but configure
> builds bibtex.lua from bibtex.lua.in (which is surely derived somehow via
> notangle) while simultaneously writing out the Makefile. I would suggest
> that it be made the Makefile's responsibility to produce the bibtex.lua file
> via notangle and then mangle it as configure currently does.
Good idea. The whole build system is pretty Rube Goldberg.
It does seem like bibtex.lua.in should be regenerated, as you say.
notangle -Rbibtex.lua -L nbib.nw > bibtex.lua
Patches welcome.
(Or maybe this package should just be pulled from the archive; there are
other competing post-bibtex system, and I don't think nbibtex has had
significant uptake.)
--Barak.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]