diff options
| author | bwarsaw | 2000-11-08 18:46:14 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-11-08 18:46:14 +0000 |
| commit | 9bd74c17a973041ffec9af764373438d72a90c1a (patch) | |
| tree | 9a7b9e3ab0ea9ebdeedb4cd7d0b479f8544f44a0 | |
| parent | 9d0b42eb6e44accec416f1c179a6065f3ac3e0cb (diff) | |
| download | mailman-9bd74c17a973041ffec9af764373438d72a90c1a.tar.gz mailman-9bd74c17a973041ffec9af764373438d72a90c1a.tar.zst mailman-9bd74c17a973041ffec9af764373438d72a90c1a.zip | |
Convert to a .ht generator and take the input and output file names
from the command line.
| -rwxr-xr-x | admin/bin/mm2do | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/bin/mm2do b/admin/bin/mm2do index 3aeea0d2a..10889d36f 100755 --- a/admin/bin/mm2do +++ b/admin/bin/mm2do @@ -20,19 +20,20 @@ # Requires Python 2.0. -infp = open('TODO') -outfp = open('admin/www/todo.html', 'w') +import sys + +infp = open(sys.argv[1]) +outfp = open(sys.argv[2], 'w') SPACE = ' ' -print >> outfp, '<html><head><title>The Mailman TODO list</title></head>' -print >> outfp, '<body bgcolor="#ffffff">' +print >> outfp, 'Title: The Mailman Wishlist\n' def dumpsection(header, items, hasitems): # We're looking at a header if header: # output the previous section - print >> outfp, '<h1>', header, '</h1>' + print >> outfp, '<h3>', header, '</h3>' if hasitems: print >> outfp, '<ul>' for item in items: @@ -64,4 +65,3 @@ while 1: items[-1].append(line[:-1]) dumpsection(header, items, hasitems) -print >> outfp, '</body></html>' |
