>
> > In general it looks good. However I do not like generating .ht files
> > in 'src/hyper' directory. 'src/hyper' is for building HyperDoc,
> > building HyperDoc pages beside using HyperDoc programs has nothing
> > to do with building HyperDoc. That is why I created the 'src/paste'
> > directory. If you do not like 'src/paste' use 'src/htex' or create
> > different subdirectory, but please do not use 'src/hyper'.
>
> Sleeping over it, it's not exactly clear what your idea of the directory
> structure is.
General structure is that we have build directory which I will
call build_dir and source directory which I will call src_dir.
Normally build_dir and src_dir are different, but they are
allowed to coincide to support 'in tree' build. Structure
of build_dir is supposed to parallel structure of src_dir.
So typical case is that say sources of interpsys are in
src_dir/src/interp and interpsys is build in
build_dir/src/interp. In particular, things in build_dir/foo
are created by build_dir/foo/Makefile which in turn
is created by configure from src_dir/foo/Makefile.in.
Concerning dividing things into directories/files I am
trying to keep to following rules:
- do not move things around, unless new arrangenent
is clearly better (that is gain from change should
be big enough to compensate for disruption due to
change)
- keep things divided into logically connected parts
of managable size. Big directory/file may be split
just for size reasons even if othewise would be a
single unit. Tiny loosely related parts are not
split into separate units to avoid creating too
many parts.
>
> In trunk there is
>
> src/hyper/bitmaps and src/hyper/pages
>
> That you didn't seem to be addressing.
Well, they should be moved to better places.
> I've made everything inside src/hyper, because all this is related to
> hyperdoc, either with the program or with the actual documentation.
>
> The reason why I've created src/htex was that the .htex files are also
> used to generate the book and that didn't make sense to me to plan
> putting the code for generating the book inside src/hyper.
>
> In fact, now since you are unhappy with the documentation in src/hyper,
> I'll create src/doc/htex, src/doc/ht, src/doc/bitmaps and move the
> generation of the hyperdoc pages into src/doc. Furthermore, I plan to
> also create the latex version of the AXIOM book inside src/doc.
>
> What do you think about this structure?
I am affraid that putting generation of everthing is src/doc
is not a good idea. I would prefer generation of .ht pages
to be in separate directory from generating .pht-s and
viewports. Basically they use separate rules and each
involves large number of files, so IMHO keeping them
separte would more managable. But this is not very strong opinion.
So I would probably put generation of .ht pages into 'src/doc/ht'
or maybe 'src/doc/gen_ht' and the .pht part and viewports into
'src/doc/paste'. If that is problematic for you, then I think
that generating everything in something like 'src/doc/gen_ht'
is better than plain 'src/doc' (the idea is that AXIOM book
and possible other things can go into different subdirectories
of 'src/doc'.
One extra thing: I would like to keep current practice of bundling
generated .pht-s and viewports with release tarball. More
precisely, I think it is important to bundle graphic .pht
pages and viewports. But given that the simplest thing to
do is to bundle all generated .ht and .pht pages.
With directory arrangement in trunk this is relatively easy
and there is reasonably clear distiction between real
sources and generated files bundled into release tarball
(the generated files are in src/paste). And generation
of release tarball can be done by a simple script
(see src/scripts/mkdist.sh). From this point of view
generated '.ht' files should be in different subdirectory
from '.ht' files which are sources.
BTW: I noticed curious thing: on my build machine real
time for 'make all-input' after build in the htdoc branch
seem to be 20s larger (that 120s versus 100s) than real time in
trunk. CPU times seem to almost identical. I am not sure
if this means anything, but this happened twice, so it does
not look like random fluctuation due to sudden increase
in machine load.
--
Waldek Hebisch
heb...@math.uni.wroc.pl