* Martin Schulze <[EMAIL PROTECTED]> [2003-01-17 21:57]: > What about this patch and the attached script? > > @@ -14,3 +15,10 @@ > > %.$(LANGUAGE).html: %.wml $(TEMPLDIR)/event.wml > $(WML) $(<F) > + > +Makefile.reports: > + $(ENGLISHSRCDIR)/events/make_makefile_reports.pl > $(ENGLISHSRCDIR)/$(CUR_DIR)
Shouldn't Makefile.reports depend on something? Is it possible to use wildchars there? Like: Makefile.reports: $(ENGLISHDIR)/events/2002/*-report.wml ... and also with $LANGDIR or what that is called if current language is != english. Or doesn't that work? That way we won't have to add a generation of the Makefile.reports into the cronjobs. Ah, now it comes to my mind that this won't work unless there is at least one *-report.wml file... Stupid thing. > It does not yet scan for the defined report, but that can be added > quite easily. Makefile must not scan for defined reports, must it? And the event page must not depend on itself for it will be regenerated anyway when you edit it ,) >> Thanks for the hint to the minutes.wml, but I was more thinking of how >> to include it in the <ul> at the end as an item. I can't come up with > > if defined, add the code > <a href="<report>"><gettext>Report</gettext></a> > to the header that contains When, Where and More Info at the moment. Alright. Thats what I asked for from you in the first place but I guess we had a misunderstanding there. > If you want to have it in the <ul> at the end, that's a little bit more > tricky, but doable as well. :-) There's no need to do it, my intention was to have it in the list at the top anyway. > If there is, modify the <ul> to write "<ul>\n<li>..." when the source > file contains the string "<ul>". You'll just have to redefine <ul> > and refer to <ul*> for the original. Ah, right, of course. But that might interfere with other used <ul> that might happen to appear on the events pages. Like in /events/2001/1115-hispalinux.wml :) So long, Alfie -- <snowcrash> ZZcd .. <snowcrash> oops -- #jutesack
pgpnDbHEfG1ys.pgp
Description: PGP signature