Jim Gifford wrote:
> We have been talking about different formats for the different books, I
> was thinking and wondering if it was possible to do the following.
>
> 1 - On our other architecture where things are the same no change
> needed. these would be placed in /common directory.
> 2 - On the differences, couldn't we call /{architecture directory}
> 3 - Symlink the common files
>
> Let me go into more details here
>
> Our current directory structure is
>
> chapter - xml.files
>
> My proposal is
> chapter - common
> {architecture}
>
> For example if compiling diffutils is the same for all architectures
> in {architecture} we would have a symlink to common, but
> if it was different it would have it's own diffutils page.
>
> The only time this structure would have to be used is for the chapters
> dealing with any type of compiling and configuration.
>
> Just and idea, figured I would through it out.
>
That's the layout I'd think it best, but you'd have to have multiple
index.xml's. Maybe a master xml file and a couple of 'xinclude
ARCH-PATH/chapterX.xml' could handle that with a sed in the makefile
might do it, but _I_ have no idea how to do it without regenerating the
complete book including the common parts. 'man xsltproc' doesn't show a
way to tell xsltproc to ignore the input file if the output file already
exists...but I am far from knowing anything advanced about the tools
used to build the book. Just wanted to say I like the suggested layout
and the direction that LFS is heading.
-- DJ Lucas
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page