[Gimp-web] Static pages for m.g.o
Raphaël Quinet
quinet at gamers.org
Thu Sep 11 10:47:50 2003
On Wed, 10 Sep 2003 19:59:38 -0700, Helvetix Victorinox <helvetix@mysterious.org> wrote:
> On Wed, Sep 10, 2003 at 09:50:08AM +0200, Raphaël Quinet wrote:
> > So please, pretty please, with sugar on top ;-), could you:
> > - add the SSI preprocessor for all .htrw files
>
> This has been in place a for a while now.
Errr... Unfortunately not. I have the current CVS version of the
Makefile and after a "make clean" followed by "make DocumentRoot=...",
I still got all html files with the SSI <!--#include ...--> stuff, so
I cannot use them for testing.
Just to be sure, I checked the rules in the Makefile for the *.htrw
files and I see this:
# how to make an html from a .htrw file
%.html: %.htrw
programmatic/tools/rewrite_attrs -d admin/gimp-web-urls $< > $@
chmod 755 $@
The "chmod 755" should be removed because the files should not be
executable (they will not contain any SSI statements) and there should
be a call to the ssi-pp script somewhere, although I don't know if it
should come before or after rewrite-attrs. By the way, wouldn't it be
easier to merge both scripts if they will always be used together?
That would make the Makefile simpler and would remove the need for
intermediate files.
> > - rename the .ssi files to .htrw
>
> ok
>
> > - remove all rules related to .ssi files, to simplify the Makefile?
>
> ok
Would it be possible for you to do that today?
> I'd like to demonstrate a different approach to making the top-level
> index.html which doesn't require a make or a reinstall. I'll put it
> together soon.
I don't think that it matters much. There are other dynamic files
that I would like to add later and they will also require a "make"
followed by "make install" because some include files will be
affected. I am thinking about the list of mirrors and the latest
ChangeLog entries, among others. So why would you want to add a
special case for the index page if other pages will already use the
common mechanism?
-Raphaël