91b798665eb472c933a6464c4555754bacf49076
[gnus] / make.bat
1 @echo off\r
2 \r
3 rem Written by David Charlap <shamino@writeme.com>\r
4 \r
5 rem There are two catches, however.  The emacs.bat batch file may not exist\r
6 rem in all distributions.  It is part of the Voelker build of Emacs 19.34\r
7 rem (http://www.cs.washington.edu/homes/voelker/ntemacs.html).  If the user\r
8 rem installs Gnus with some other build, he may have to replace calls to\r
9 rem %1\emacs.bat with something else.\r
10 rem \r
11 rem Also, the emacs.bat file that Voelker ships 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
15 rem \r
16 rem     %emacs_dir%\bin\emacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9\r
17 rem \r
18 rem should become\r
19 rem \r
20 rem     %emacs_dir%\bin\emacs.exe %*\r
21 rem \r
22 rem which will allow the batch file to accept an unlimited number of\r
23 rem parameters.\r
24 \r
25 rem Clear PWD so emacs doesn't get confused
26 set GNUS_PWD_SAVE=%PWD%
27 set PWD=
28
29 rem Clear PWD so emacs doesn't get confused
30 set GNUS_PWD_SAVE=%PWD%
31 set PWD=
32
33 if "%1" == "" goto usage\r
34 \r
35 cd lisp\r
36 call %1\bin\emacs.bat -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile\r
37 if not "%2" == "copy" goto info\r
38 copy *.el* %1\lisp\r
39 \r
40 :info\r
41 cd ..\texi\r
42 call %1\bin\emacs.bat -batch -q -no-site-file gnus.texi -l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer\r
43 call %1\bin\emacs.bat -batch -q -no-site-file message.texi -l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer\r
44 if not "%2" == "copy" goto done\r
45 copy gnus %1\info\r
46 copy gnus-?? %1\info\r
47 copy message %1\info\r
48 \r
49 :etc\r
50 cd ..\etc\r
51 copy gnus-tut.txt %1\etc\r
52 \r
53 :done\r
54 cd ..\r
55 goto end\r
56 \r
57 :usage\r
58 echo Usage: make ^<emacs-dir^> [copy]\r
59 echo.\r
60 echo where: ^<emacs-dir^> is the directory you installed emacs in\r
61 echo                    eg. d:\emacs\19.34\r
62 echo        copy indicates that the compiled files should be copied to your\r
63 echo             emacs lisp, info, and etc directories\r
64 \r
65 rem Restore PWD so whoever called this batch file doesn't get confused
66 set PWD=%GNUS_PWD_SAVE%
67 set GNUS_PWD_SAVE=
68 rem Restore PWD so whoever called this batch file doesn't get confused
69 set PWD=%GNUS_PWD_SAVE%
70 set GNUS_PWD_SAVE=
71 :end\r