[tlbuild] trying to add package
Karl Berry
karl at freefriends.org
Thu Sep 24 00:47:02 CEST 2020
Hi Bob,
I'm trying to add a package xml2pmx to (a local copy of) texlive.
Sorry I haven't gotten to that yet. Thanks much for pursuing it.
So I'm following "Adding a new program module" and
"Build one package" in the tlbuild documentation.
You may be the first person to actually try to add a new program to the
source tree following that doc, so congratulations on getting as far as
you have. If you can keep track of the things that are missing from it
and tell me after (hopefully :) success, that would be great.
so I'm conjecturing that @XML2PMX_TREE@ isn't defined, but I
don't know where that happens. Can anyone help?
Add this line to configure.ac:
AC_SUBST([XML2PMX_TREE], [xml2pmx-src])
The location is not critical; right before the AC_CONFIG_FILES at the
end is a sensible place. (I'll add this info to tlbuild.texi.)
You have probably already been doing this, but for the record, let me
say that the best way to approach this, besides reading the doc as you
mentioned, is to look at the setup for the most comparable programs you
can find. In this case, m-tx, pmx, xpdfopen, axodraw2, the various other
small programs in utils/, several of which are yours, as you know :).
I often need to run grep -r on the entire source tree for whatever
strings I can think of (e.g., "_TREE" in this case) to investigate how
something has been done.
Let me know how it goes, and thanks again. --karl
More information about the tlbuild
mailing list.