summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-01-23 22:14:16 (GMT)
committerFred Drake <fdrake@acm.org>2005-01-23 22:14:16 (GMT)
commit93f18f6f7743d35517ae4974872db131b400f893 (patch)
tree54fc56610d88f854709834e098f4d924364f0962
parent9c131f28796dcfa0be3c0338316dd8d97fcea2df (diff)
downloadcpython-93f18f6f7743d35517ae4974872db131b400f893.zip
cpython-93f18f6f7743d35517ae4974872db131b400f893.tar.gz
cpython-93f18f6f7743d35517ae4974872db131b400f893.tar.bz2
include each row in the package table, even if there are no packages for
that row; the row is commented out in that case (this makes it easier to modify the table after generation)
-rwxr-xr-xDoc/tools/mkpkglist19
1 files changed, 11 insertions, 8 deletions
diff --git a/Doc/tools/mkpkglist b/Doc/tools/mkpkglist
index 2c51ee7..1a1fd78 100755
--- a/Doc/tools/mkpkglist
+++ b/Doc/tools/mkpkglist
@@ -67,14 +67,17 @@ for name, prefix in PKG_TYPES:
have_tgz = isfile(tgz_fn)
have_bz2 = isfile(bz2_fn)
- if have_zip or have_tgz or have_bz2:
- print " <tr><td>%s</td>" % name
-
- print get_file_cell(prefix, ".zip", have_zip)
- print get_file_cell(prefix, ".tgz", have_tgz)
- print get_file_cell(prefix, ".tar.bz2", have_bz2)
-
- print " </tr>"
+ have_some = have_zip or have_tgz or have_bz2
+
+ if not have_some:
+ print " <!--"
+ print " <tr><td>%s</td>" % name
+ print get_file_cell(prefix, ".zip", have_zip)
+ print get_file_cell(prefix, ".tgz", have_tgz)
+ print get_file_cell(prefix, ".tar.bz2", have_bz2)
+ print " </tr>"
+ if not have_some:
+ print " -->"
print '''\
</tbody>