[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2000 security announcements

On Tue, Jan 11, 2000 at 12:18:11PM -0500, James A. Treacy wrote:
> There are a number of things that could be done here.
> get_recent_list will go back to the previous year if the current year does
> not provide enough entries. This should be fixed to not depend on the dir
> for the current year existing. Even better would be to make the function
> go back through all the years until the number of desired entries is
> reached.
It turns out that get_recent_list works fine if the listed year does not
exist. It happily goes back and grabs from the previous year.
It still might be worth it to make the function more robust.
If anyone would like to do this, feel free.

> The calls to get_recent_list should have the current year inserted
> automatically. This should be done in the call to get_recent_list, not
> in the function itself as the function may be called on a directory
> that is not named by a year.
The best way to do this would be to use a function in the function
call, but this isn't allowed. Instead, the current year is passed in
through the line invoking wml. This is done in Make.lang.

> The list of years in the SUBS variable can be generated on the fly.
> The following will do it:
> YEARS:=$(wildcard [12][0-9][0-9][0-9])
Changed this for News/Makefile and security/Makefile. If it works ok
it can be changed for the other langs.

James (Jay) Treacy

Reply to: