#!/usr/bin/python
import os,re
os.chdir("csharp_standard")
l=[]
for n in os.listdir('.'):
if n[0]>='0' and n[0]<='9' and n.endswith('.htm'):
t=n[:-4].split('.')
s=[0,0,0,0,n,n[:-4]]
for i in range(len(t)):
s[i]=int(t[i])
l.append(tuple(s))
l.sort()
r= """
Hyperlinked ECMA C# Language SpecificationECMA-334 C# Language Specification
Formatted in one big (1.6Mb) html page by Antony Lesuisse.
(generated from the Jon
Jagger splitted version). I took the splitted html catted all the files
together using a small python script csharp_join.py.
"""
t=file('toc.htm').read()
mo=re.search(r'(\.*)',t,re.DOTALL)
if mo:
r+='\n\n\n'
r+='
Table of Contents\n'
r+=mo.group(1)
else:
raise ''
for i in l:
t=file(i[4]).read()
mo=re.search(r'(\.*)',t,re.DOTALL)
if mo:
r+='\n\n\n'%i[5]
r+='