Files
sw_pyalsaaudio/doc/src/sffixup.py
larsimmisch 2cf24ef81b Updates for release 0.3:
setup.py was extended for pypi.

doc/index.html is automatically rewritten by doc/src/Makefile to add 
SourceForge links. index.html is now the standard homepage for pyalsaaudio.

Minor documentation fixes (capitalisation, spelling, etc.). Caspers email is 
hidden in the documentation.


git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@14 ec2f30ec-7544-0410-870e-f70ca00c83f0
2008-01-24 12:30:46 +00:00

36 lines
853 B
Python

#!/usr/bin/env/python
# This is a hack and totally brittle. Let's not talk about it.
import sys
sfnotes = '''<ul>
<li><a href="http://sourceforge.net/">SourceForge</li>
<ul>
<li><a href="http://sourceforge.net/projects/pyalsaaudio/">Summary page</a>
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=120651">Download</a>
<li><a href="http://sourceforge.net/tracker/?group_id=120651">Bug Tracker</a>
</ul>
</ul>'''
if len(sys.argv) <= 1:
print "usage: sffixup.py <file>"
sys.exit(2)
f = open(sys.argv[1], 'r')
lines = f.readlines()
f.close()
try:
index = lines.index('<a name="CHILD_LINKS"></a>\n')
except ValueError:
print "Cannot find child links. SourceForge links will not appear on index.html."
sys.exit(1)
lines.insert(index, sfnotes)
f = open(sys.argv[1], 'w')
for l in lines:
f.write(l)
f.close()