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