Fix a Makefile bug that could result in the index failing to be regenerated when needed.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2019-11-17 17:30:45 +00:00
parent 707e7509a2
commit c13faee763
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ index.html: README.rst
sed -i 's|</head>|<link rel="stylesheet" href="css/zip-style.css"><link rel="stylesheet" href="assets/css/style.css"></head>|' $@
sed -i 's|<a href="\([^":]*\).rst">|<a href="\1">|' $@
README.rst: makeindex.sh README.template
README.rst: makeindex.sh README.template $(filter-out README.rst,$(wildcard *.rst))
./makeindex.sh | cat README.template - >README.rst
.PHONY: clean

View File

@ -11,6 +11,7 @@ Index of ZIPs
<tr> <th>ZIP</th> <th>Title</th> <th>Status</th> </tr>
EndOfHeader
for zipfile in zip-*.rst; do
echo Adding $zipfile to index. >/dev/stderr
if grep -E '^\s*Status:\s*(Withdrawn|Rejected|Obsolete)' $zipfile >/dev/null; then
echo " <tr> <td><strike>`basename $zipfile .rst | sed -r 's@zip-0{0,3}@@'`</strike></td> <td class=\"left\"><strike><a href=\"`echo $zipfile`\">`grep '^\s*Title:' $zipfile | sed 's@\s*Title:\s*@@'`</a></strike></td> <td>`grep '^\s*Status:' $zipfile | sed 's@\s*Status:\s*@@'`</td>"
else