diff options
| author | viega | 1998-06-21 19:12:53 +0000 |
|---|---|---|
| committer | viega | 1998-06-21 19:12:53 +0000 |
| commit | f4b805fc99c2275526d0936cce748592229a1c07 (patch) | |
| tree | ad16f616331863e72c143821fa07b3590d2a7bc5 /admin | |
| parent | 94f82aeac7ac76d808ece10b178302e7a8a562a6 (diff) | |
| download | mailman-f4b805fc99c2275526d0936cce748592229a1c07.tar.gz mailman-f4b805fc99c2275526d0936cce748592229a1c07.tar.zst mailman-f4b805fc99c2275526d0936cce748592229a1c07.zip | |
Somehow I missed adding this one when I added the web pages to the cvs
tree. This script just generates todo.html from the TODO file.
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/bin/mm2do | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/admin/bin/mm2do b/admin/bin/mm2do new file mode 100755 index 000000000..cd6a4c234 --- /dev/null +++ b/admin/bin/mm2do @@ -0,0 +1,53 @@ +#!/usr/bin/env python +import sys, string +f = open('../../TODO', 'r') +sys.stdout = open('../www/todo.html', 'w') +lines = f.readlines() +f.close() +l = len(lines) +i = 0 +print "<HTML><HEAD><TITLE>The Mailman TODO list</TITLE></HEAD><BODY>" +while lines[i][0] <> '*': + if string.strip(lines[i]) <> '': + print "<H1>",lines[i][:-1], "</H1>" + i = i + 1 + if i == l: break + +info = [] +while 1: + if lines[i][0] <> '*': break + category = lines[i][1:-1] + i = i + 1 + points = [] + while i<>l and lines[i][0] <> '*': + if string.strip(lines[i]) == '': + i = i + 1 + continue + if lines[i][0] == '-': + points.append(lines[i][1:-1]) + elif len(points): + if points[-1][-1] <> ' ' and lines[i][0] <> ' ': + points[-1] = points[-1] + ' ' + points[-1] = points[-1] + lines[i][:-1] + else: + points.append(lines[i][:-1]) + i = i + 1 + info.append((category,points)) + if i == l: break +print '<H2>Categories:</H2>' +print '<UL>' +x = 1 +for category, stuff in info: + print '<LI><FONT SIZE=+1><A href=#c%d>%s</A></FONT></LI>' % (x,category) + x = x + 1 +print '</UL>' +print '<HR>' +x = 1 +for category, stuff in info: + print '<A NAME=c%d><H3>%s</H3>' % (x, category) + x = x + 1 + print '<UL>' + for item in stuff: + print '<LI>%s</LI>' % item + print '</UL>' +print '</BODY></HTML>' |
