2000-09-29 12:53:27 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 29 Sep 2000 15:58:30 +0000 (15:58 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 29 Sep 2000 15:58:30 +0000 (15:58 +0000)
* Makefile.in: A workaround for @ifnottex.

texi/ChangeLog
texi/Makefile.in

index f130c79..054c9d7 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-29 12:53:27  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * Makefile.in: A workaround for @ifnottex.
+
 2000-09-29 12:36:13  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * gnus.texi: Remove @c lines in the directory due to a bug in
index 60aef06..8b5a002 100644 (file)
@@ -12,6 +12,7 @@ EMACS=@EMACS@
 EMACSINFO=$(EMACS) -batch -q -no-site-file
 INFOSWI=-l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
 XINFOSWI=-l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
+EMACSINFOHACK=-eval '(while (re-search-forward "@\\(end \\)?ifnottex" nil t) (replace-match ""))'
 PDFLATEX=pdflatex
 LATEX=latex
 DVIPS=dvips
@@ -30,7 +31,7 @@ most: texi2latex.elc latex latexps
        if test "x$(MAKEINFO)" != "xno" ; then \
          makeinfo -o $* $<; \
        else \
-         $(EMACSINFO) -eval '(find-file "$<")' $(XINFOSWI); \
+         $(EMACSINFO) -eval '(find-file "$<")' $(EMACSINFOHACK) $(XINFOSWI); \
        fi
 
 dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi