* nnml.el (nnml-files): Add prefix to dynamic var `files'.
[gnus] / make.bat
1 @echo OFF\r
2 REM Change this to ON when debugging this batch file.\r
3 \r
4 rem Written by Frank Schmitt (ich@frank-schmitt.net)\r
5 rem based on the work by David Charlap (shamino@writeme.com)\r
6 rem .\r
7 rem .\r
8 rem From http://my.gnus.org/node/343:\r
9 rem   A comment on installing Gnus on Windows 98 SE that might help others: When\r
10 rem   I ran the "make.bat" file in the 5.10.6 tarball I got a bunch of "Out of\r
11 rem   environment space" messages. The solution was to (1) make a shortcut to\r
12 rem   the make.bat file, and (2) right-click on the shortcut, setting "Cmd line"\r
13 rem   in the "Program" tab in "properties" to include the parameters make.bat\r
14 rem   requires, and "initial environment" in the "memories" tab, to the maximum\r
15 rem   (in my case, anyway, 2560).\r
16 rem .\r
17 rem Clear PWD so emacs doesn't get confused\r
18 set GNUS_PWD_SAVE=%PWD%\r
19 set PWD=\r
20 set ERROR=:\r
21 REM set pause=\r
22 \r
23 if %1p == p goto usage\r
24 \r
25 echo * Installing Gnus on your system.  Operating system:\r
26 ver\r
27 rem Emacs 20.7 no longer includes emacs.bat. Use emacs.exe if the batch file is\r
28 rem not present -- this also fixes the problem about too many parameters on Win9x.\r
29 if exist %1\emacs.bat goto ebat\r
30 if exist %1\emacs.exe goto eexe\r
31 if exist %1\xemacs.exe goto xemacs\r
32 goto noemacs\r
33 \r
34 :ebat\r
35 set EMACS=emacs.bat\r
36 echo.\r
37 echo ***************************************************************************\r
38 echo * Using emacs.bat  (If you've got Emacs 20.3 or higher please remove\r
39 echo * Emacs.bat, it isn't needed anymore.)\r
40 echo ***************************************************************************\r
41 echo.\r
42 goto emacs\r
43 \r
44 :eexe\r
45 set EMACS=emacs.exe\r
46 echo.\r
47 echo ***************************************************************************\r
48 echo * Using emacs.exe\r
49 echo ***************************************************************************\r
50 echo.\r
51 goto emacs\r
52 \r
53 :emacs\r
54 if not "%2" == "/copy" goto emacsnocopy\r
55 if not exist %1\..\site-lisp\nul mkdir %1\..\site-lisp\r
56 if not exist %1\..\site-lisp\gnus\nul mkdir %1\..\site-lisp\gnus\r
57 if not exist %1\..\site-lisp\subdirs.el set subdirwarning=yes\r
58 :emacsnocopy\r
59 set EMACS_ARGS=-batch -q -no-site-file\r
60 set GNUS_INFO_DIR=%1\..\info\r
61 set GNUS_LISP_DIR=%1\..\site-lisp\gnus\lisp\r
62 set GNUS_ETC_DIR=%1\..\site-lisp\gnus\etc\r
63 goto lisp\r
64 \r
65 :xemacs\r
66 set EMACS=xemacs.exe\r
67 if not "%2" == "/copy" goto xemacsnocopy\r
68 if not exist %1\..\..\site-packages\nul mkdir %1\..\..\site-packages\\r
69 if not exist %1\..\..\site-packages\info\nul mkdir %1\..\..\site-packages\info\r
70 if not exist %1\..\..\site-packages\lisp\nul mkdir %1\..\..\site-packages\lisp\r
71 if not exist %1\..\..\site-packages\etc\nul mkdir %1\..\..\site-packages\etc\r
72 :xemacsnocopy\r
73 set EMACS_ARGS=-batch -no-autoloads\r
74 set GNUS_INFO_DIR=%1\..\..\site-packages\info\r
75 set GNUS_LISP_DIR=%1\..\..\site-packages\lisp\gnus\r
76 set GNUS_ETC_DIR=%1\..\..\site-packages\etc\r
77 echo.\r
78 echo ***************************************************************************\r
79 echo * Using xemacs.exe\r
80 echo ***************************************************************************\r
81 echo.\r
82 goto lisp\r
83 \r
84 :lisp\r
85 if "%pause%" == "pause" pause\r
86 set EMACSBATCH=call %1\%EMACS% %EMACS_ARGS%\r
87 cd lisp\r