SCons / www /

The branch 'fix_copyright_2012' does not exist.
#!/usr/bin/env python

import sys
import datetime

months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
	  'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']

print '<table width="100%">'
def row(*cells, **kw):
	td = kw.get('tr','td')
	print '  <tr>'
	for cell in cells:
		print '    <%s>%s</%s>' % (td,cell,td)
	print '  </tr>'
row('Estimated&nbsp;date', 'Type', 'Comments', tr = 'th')

if len(sys.argv) > 1:
	f = open(sys.argv[1])
else:	f = open('schedule')
now = None
current = 'UNKNOWN'
for line in f:
	if line[0] == '#': continue	# comment
	if line[0] == '=':
		date,current = line[1:].strip().split(None, 1)
		now =*tuple([int(i) for i in date.split('-')]))
	if line[0] == '+':
		incr,type,desc = line[1:].strip().split(None,2)
		now = now + datetime.timedelta(int(incr))
		print 'dunna understand code', line[0]
	#name = current + '.d' + str(now).replace('-','')
	date = '%s-%s-%s' % (,months[now.month-1],now.year)
	if type == 'ck':
		category = 'Ckpt'
	elif type == 'rc':
		category = 'RC'
		category = current = type
	row(date, category, desc)
print '</table>'

# Local Variables:
# tab-width:4
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=4 shiftwidth=4:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.