~exarkun/pyopenssl/trunk

« back to all changes in this revision

Viewing changes to doc/tools/fixinfo.el

  • Committer: Jean-Paul Calderone
  • Date: 2011-09-11 19:49:43 UTC
  • mfrom: (156.3.22 sphinx-doc)
  • Revision ID: exarkun@divmod.com-20110911194943-ucaan2tzidk7ek5l
Convert the documentation from LaTeX/epytext to Sphinx/ReST

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
(defun fix-python-texinfo ()
2
 
  (goto-char (point-min))
3
 
  (replace-regexp "\\(@setfilename \\)\\([-a-z]*\\)$"
4
 
                  "\\1python-\\2.info")
5
 
  (replace-string "@node Front Matter\n@chapter Abstract\n"
6
 
                  "@node Abstract\n@section Abstract\n")
7
 
  (mark-whole-buffer)
8
 
  (texinfo-master-menu 'update-all-nodes)
9
 
  (save-buffer)
10
 
  )     ;; fix-python-texinfo
11
 
 
12
 
;; now really do it:
13
 
(find-file (car command-line-args-left))
14
 
(fix-python-texinfo)
15
 
(kill-emacs)