2 REM Change this to ON when debugging this batch file.
\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
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
17 rem Clear PWD so emacs doesn't get confused
\r
18 set GNUS_PWD_SAVE=%PWD%
\r
23 if %1p == p goto usage
\r
25 echo * Installing Gnus on your system. Operating system:
\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
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
47 echo ***************************************************************************
\r
48 echo * Using emacs.exe
\r
49 echo ***************************************************************************
\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
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
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
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
78 echo ***************************************************************************
\r
79 echo * Using xemacs.exe
\r
80 echo ***************************************************************************
\r
85 if "%pause%" == "pause" pause
\r
86 set EMACSBATCH=call %1\%EMACS% %EMACS_ARGS%
\r