WWW-Changes archive

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

CVS commit: htdocs

Module Name:    htdocs
Committed By:   leot
Date:           Mon Jan  1 14:38:03 UTC 2018

Modified Files:
        htdocs: Makefile.inc

Log Message:
Also honors the last year news when generating `Latest News' column.

CHANGESDOCS variable (the list of documents that contain the latest changes,
for more information please give a look to htdocs/share/mk/language.mk) was
not defined, hence only changes/index.xml was used to generate the
`Latest News' column. This is often problematic in the first days of the new
year when instead of having the last 4 news we just have an empty `Latest News'
column (like right now).

Define and initialize an internal _PREVIOUS_YEAR variable to get the previous
year via awk(1) and initialize CHANGESDOCS to ${_PREVIOUS_YEAR} and index to
avoid not having the latest 4 news.

XXX: Strictly speaking this can be still problematic if during a year we have
XXX: not published at least 4 news!

To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 htdocs/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index