summaryrefslogtreecommitdiffstats
path: root/Doc/tools/fixinfo.el
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-01-08 15:27:17 (GMT)
committerFred Drake <fdrake@acm.org>1999-01-08 15:27:17 (GMT)
commitc58f346374be696b6351a0b678fe5c3b33a7092c (patch)
treecb9c15e097b65078d0ede0ab4c0fef4ebe240471 /Doc/tools/fixinfo.el
parent3fe1d326932432b1c27b75e9d3ce79f91dcfe1f8 (diff)
downloadcpython-c58f346374be696b6351a0b678fe5c3b33a7092c.zip
cpython-c58f346374be696b6351a0b678fe5c3b33a7092c.tar.gz
cpython-c58f346374be696b6351a0b678fe5c3b33a7092c.tar.bz2
New support scripts for HTML->info conversion that use Michael Ernst's new
conversion tools.
Diffstat (limited to 'Doc/tools/fixinfo.el')
-rw-r--r--Doc/tools/fixinfo.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/Doc/tools/fixinfo.el b/Doc/tools/fixinfo.el
new file mode 100644
index 0000000..75baf34
--- /dev/null
+++ b/Doc/tools/fixinfo.el
@@ -0,0 +1,17 @@
+(defun fix-python-texinfo ()
+ (goto-char (point-min))
+ (replace-regexp "\\(@setfilename \\)\\([-a-z]*\\)$"
+ "\\1python-\\2.info")
+ (replace-string "@node Front Matter\n@chapter Abstract\n"
+ "@node Abstract\n@section Abstract\n")
+ (progn
+ (mark-whole-buffer)
+ (texinfo-master-menu 'update-all-nodes)
+ )
+ (save-buffer)
+ ) ;; fix-python-texinfo
+
+;; now really do it:
+(find-file (car command-line-args-left))
+(fix-python-texinfo)
+(kill-emacs)