*** empty log message ***
[gnus] / make.bat
1 @echo off\r
2 \r
3 rem Written by David Charlap <shamino@writeme.com>\r
4 rem\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
10 rem \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
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\r
26 set GNUS_PWD_SAVE=%PWD%\r
27 set PWD=\r
28 \r
29 if "%1" == "" goto usage\r
30 \r
31 cd lisp\r
32 call %1\bin\emacs.bat -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile\r
33 if not "%2" == "copy" goto info\r
34 attrib -r %1\lisp\gnus\*\r
35 copy *.el* %1\lisp\gnus\r
36 \r
37 :info\r
38 cd ..\texi\r
39 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
40 call %1\bin\emacs.bat -batch -q -no-site-file emacs-mime.texi -l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer\r
41 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
42 if not "%2" == "copy" goto done\r
43 copy gnus %1\info\r
44 copy gnus-?? %1\info\r
45 copy message %1\info\r
46 \r
47 :etc\r
48 cd ..\etc\r
49 copy gnus-tut.txt %1\etc\r
50 \r
51 :done\r
52 cd ..\r
53 goto end\r
54 \r
55 :usage\r
56 echo Usage: make ^<emacs-dir^> [copy]\r
57 echo.\r
58 echo where: ^<emacs-dir^> is the directory you installed emacs in\r
59 echo                    eg. d:\emacs\19.34\r
60 echo        copy indicates that the compiled files should be copied to your\r
61 echo             emacs lisp, info, and etc directories\r
62 \r
63 rem Restore PWD so whoever called this batch file doesn't get confused\r
64 set PWD=%GNUS_PWD_SAVE%\r
65 set GNUS_PWD_SAVE=\r
66 :end\r