* Makefile.in (.texi): Remove $@ first.
* infohack.el (infohack-remove-unsupported): Remove @iflatex lines.
(infohack): Specify a coding-system to save info files.
From Katsumi Yamaoka <yamaoka@jpl.org>
+2001-09-28 07:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * Makefile.in (.texi): Remove $@ first.
+
+ * infohack.el (infohack-remove-unsupported): Remove @iflatex lines.
+ (infohack): Specify a coding-system to save info files.
+ From Katsumi Yamaoka <yamaoka@jpl.org>
+
2001-09-28 00:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
* gnusconfig.tex.in: Use cmss if pfu is not found.
2001-09-28 00:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
* gnusconfig.tex.in: Use cmss if pfu is not found.
if test "x$(MAKEINFO)" != "xno" ; then \
$(MAKEINFO) -I $(srcdir) -o $* $<; \
else \
if test "x$(MAKEINFO)" != "xno" ; then \
$(MAKEINFO) -I $(srcdir) -o $* $<; \
else \
sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
$(TEXI2DVI) -I $(srcdir) gnustmp.texi
cp gnustmp.dvi $*.dvi
sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
$(TEXI2DVI) -I $(srcdir) gnustmp.texi
cp gnustmp.dvi $*.dvi
.texi.pdf :
sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
$(TEXI2PDF) -I $(srcdir) gnustmp.texi
cp gnustmp.pdf $*.pdf
.texi.pdf :
sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
$(TEXI2PDF) -I $(srcdir) gnustmp.texi
cp gnustmp.pdf $*.pdf
refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
TEXINPUTS=$(srcdir):$$TEXINPUTS $(LATEX) refcard.tex
refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
TEXINPUTS=$(srcdir):$$TEXINPUTS $(LATEX) refcard.tex
(defun infohack-remove-unsupported ()
(goto-char (point-min))
(while (re-search-forward "@\\(end \\)?ifnottex" nil t)
(defun infohack-remove-unsupported ()
(goto-char (point-min))
(while (re-search-forward "@\\(end \\)?ifnottex" nil t)
+ (replace-match ""))
+ (goto-char (point-min))
+ (while (search-forward "\n@iflatex\n" nil t)
+ (delete-region (1+ (match-beginning 0))
+ (search-forward "\n@end iflatex\n"))))
(defun infohack (file)
(let ((dest-directory default-directory)
(defun infohack (file)
(let ((dest-directory default-directory)
- (max-lisp-eval-depth (max max-lisp-eval-depth 600)))
+ (max-lisp-eval-depth (max max-lisp-eval-depth 600))
+ coding-system)
+ (setq coding-system buffer-file-coding-system)
(infohack-remove-unsupported)
(texinfo-every-node-update)
(texinfo-format-buffer t) ;; Don't save any file.
(infohack-remove-unsupported)
(texinfo-every-node-update)
(texinfo-format-buffer t) ;; Don't save any file.
(setq buffer-file-name
(expand-file-name (file-name-nondirectory buffer-file-name)
default-directory))
(setq buffer-file-name
(expand-file-name (file-name-nondirectory buffer-file-name)
default-directory))
+ (setq buffer-file-coding-system coding-system)
(if (> (buffer-size) 100000)
(Info-split))
(save-buffer)))
(if (> (buffer-size) 100000)
(Info-split))
(save-buffer)))