~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/generate_release_notes.py

  • Committer: Andrew Bennetts
  • Date: 2010-10-13 06:14:37 UTC
  • mto: This revision was merged to the branch mainline in revision 5498.
  • Revision ID: andrew.bennetts@canonical.com-20101013061437-2e2m9gro1eusnbb8
Tweaks to the sphinx build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
 
53
53
.. toctree::
54
 
   :maxdepth: 1
 
54
   :maxdepth: 2
55
55
 
56
56
"""
57
57
 
117
117
    out_file_name = args[0]
118
118
    news_file_names = sorted(args[1:], key=natural_sort_key, reverse=True)
119
119
 
120
 
    if out_file_name == 'index.txt':
 
120
    if os.path.basename(out_file_name) == 'index.txt':
121
121
        preamble = preamble_sphinx
122
122
        output_news_file = output_news_file_sphinx
123
123
    else: