3 rem Written by David Charlap (shamino@writeme.com)
\r
5 rem There are two possible problems with this batch file. The emacs.bat batch
\r
6 rem file may not exist in all distributions. It is part of the GNU build of
\r
7 rem Emacs 20.4 (http://www.gnu.org/softare/emacs/windows.ntemacs.html) If you
\r
8 rem install Gnus with some other build, you may have to replace calls to
\r
9 rem %1\emacs.bat with something else.
\r
11 rem Also, the emacs.bat file that comes with Emacs does not accept more than 9
\r
12 rem parameters, so the attempts to compile the .texi files will fail. To
\r
13 rem fix that (at least on NT. I don't know about Win95), the following
\r
14 rem change should be made to emacs.bat:
\r
16 rem %emacs_dir%\bin\emacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
\r
20 rem %emacs_dir%\bin\emacs.exe %*
\r
22 rem which will allow the batch file to accept an unlimited number of
\r
25 rem Clear PWD so emacs doesn't get confused
\r
26 set GNUS_PWD_SAVE=%PWD%
\r
29 if "%1" == "" goto usage
\r
31 rem Emacs 20.7 no longer includes emacs.bat. Use emacs.exe if the batch file is
\r
32 rem not present -- this also fixes the problem about too many parameters on Win9x.
\r
34 if exist %1\bin\emacs.bat set emacs=emacs.bat
\r
37 call %1\bin\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile
\r
38 if not "%2" == "copy" goto info
\r
39 attrib -r %1\lisp\gnus\*
\r
40 copy *.el* %1\lisp\gnus
\r
43 set EMACSINFOHACK="(while (re-search-forward \"@\\(end \\)?ifnottex\" nil t) (replace-match \"\"))"
\r
45 call %1\bin\%emacs% -batch -q -no-site-file message.texi -eval %EMACSINFOHACK% -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
\r
46 call %1\bin\%emacs% -batch -q -no-site-file emacs-mime.texi -eval %EMACSINFOHACK% -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
\r
47 call %1\bin\%emacs% -batch -q -no-site-file gnus.texi -eval %EMACSINFOHACK% -eval "(setq max-lisp-eval-depth 600)" -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
\r
48 if not "%2" == "copy" goto done
\r
50 copy gnus-?? %1\info
\r
51 copy message %1\info
\r
52 copy emacs-mime %1\info
\r
56 copy gnus-tut.txt %1\etc
\r
63 echo Usage: make :emacs-dir: [copy]
\r
65 echo where: :emacs-dir: is the directory you installed emacs in
\r
66 echo eg. d:\emacs\20.4
\r
67 echo copy indicates that the compiled files should be copied to your
\r
68 echo emacs lisp, info, and etc directories
\r
70 echo Note: If you have Emacs/w3 you should set the environment variable
\r
71 echo W3DIR to the directory where w3 is installed eg.
\r
72 echo set W3DIR=d:\lisp\w3-4.0pre46\lisp
\r
74 rem Restore PWD so whoever called this batch file doesn't get confused
\r
75 set PWD=%GNUS_PWD_SAVE%
\r