Import No Gnus v0.4.
[elisp/gnus.git-] / make.bat
index ddd22a3..653d827 100755 (executable)
--- a/make.bat
+++ b/make.bat
@@ -1,8 +1,18 @@
 @echo off\r
 \r
-rem Written by Frank Schmitt <ich@frank-schmitt.net>\r
+rem Written by Frank Schmitt (ich@frank-schmitt.net)\r
 rem based on the work by David Charlap (shamino@writeme.com)\r
 rem .\r
+rem .\r
+rem From http://my.gnus.org/node/343:\r
+rem   A comment on installing Gnus on Windows 98 SE that might help others: When\r
+rem   I ran the "make.bat" file in the 5.10.6 tarball I got a bunch of "Out of\r
+rem   environment space" messages. The solution was to (1) make a shortcut to\r
+rem   the make.bat file, and (2) right-click on the shortcut, setting "Cmd line"\r
+rem   in the "Program" tab in "properties" to include the parameters make.bat\r
+rem   requires, and "initial environment" in the "memories" tab, to the maximum\r
+rem   (in my case, anyway, 2560).\r
+rem .\r
 rem Clear PWD so emacs doesn't get confused\r
 set GNUS_PWD_SAVE=%PWD%\r
 set PWD=\r
@@ -21,8 +31,8 @@ goto noemacs
 set EMACS=emacs.bat\r
 echo.\r
 echo ***************************************************************************\r
-echo * Using emacs.bat (If you've got en Emacs >= 20.3 please remove Emacs.bat,\r
-echo * it isn't needed anymore.\r
+echo * Using emacs.bat  (If you've got Emacs 20.3 or higher please remove\r
+echo * Emacs.bat, it isn't needed anymore.)\r
 echo ***************************************************************************\r
 echo.\r
 goto emacs\r
@@ -38,8 +48,8 @@ goto emacs
 \r
 :emacs\r
 if not "%2" == "/copy" goto emacsnocopy\r
-if not exist %1\..\site-lisp mkdir %1\..\site-lisp\r
-if not exist %1\..\site-lisp\gnus mkdir %1\..\site-lisp\gnus\r
+if not exist %1\..\site-lisp\nul mkdir %1\..\site-lisp\r
+if not exist %1\..\site-lisp\gnus\nul mkdir %1\..\site-lisp\gnus\r
 if not exist %1\..\site-lisp\subdirs.el set subdirwarning=yes\r
 :emacsnocopy\r
 set EMACS_ARGS=-batch -q -no-site-file\r
@@ -51,10 +61,10 @@ goto lisp
 :xemacs\r
 set EMACS=xemacs.exe\r
 if not "%2" == "/copy" goto xemacsnocopy\r
-if not exist %1\..\..\site-packages\ mkdir %1\..\..\site-packages\\r
-if not exist %1\..\..\site-packages\info mkdir %1\..\..\site-packages\info\r
-if not exist %1\..\..\site-packages\lisp mkdir %1\..\..\site-packages\lisp\r
-if not exist %1\..\..\site-packages\etc mkdir %1\..\..\site-packages\etc\r
+if not exist %1\..\..\site-packages\nul mkdir %1\..\..\site-packages\\r
+if not exist %1\..\..\site-packages\info\nul mkdir %1\..\..\site-packages\info\r
+if not exist %1\..\..\site-packages\lisp\nul mkdir %1\..\..\site-packages\lisp\r
+if not exist %1\..\..\site-packages\etc\nul mkdir %1\..\..\site-packages\etc\r
 :xemacsnocopy\r
 set EMACS_ARGS=-batch -no-autoloads\r
 set GNUS_INFO_DIR=%1\..\..\site-packages\info\r
@@ -70,6 +80,7 @@ goto lisp
 :lisp\r
 set EMACSBATCH=call %1\%EMACS% %EMACS_ARGS%\r
 cd lisp\r
+attrib -r gnus-load.el\r
 if exist gnus-load.el del gnus-load.el\r
 echo.\r
 echo Stand by while generating autoloads.\r
@@ -90,14 +101,16 @@ if not "%2" == "/copy" goto infotest
 echo.\r
 echo Stand by while copying lisp files.\r
 echo.\r
-if not exist %GNUS_LISP_DIR% mkdir %GNUS_LISP_DIR%\r
+if not exist %GNUS_LISP_DIR%\nul mkdir %GNUS_LISP_DIR%\r
 xcopy /R /Q /Y *.el* %GNUS_LISP_DIR%\r
 if ErrorLevel 1 set ERROR=%ERROR%,copy-lisp\r
 goto infotest\r
 \r
 :infotest\r
 cd ..\texi\r
+attrib -r sieve\r
 if exist sieve del sieve\r
+\r
 makeinfo sieve.texi\r
 if exist sieve goto minfo\r
 REM It seems that makeinfo isn't available\r
@@ -132,9 +145,11 @@ if ErrorLevel 1 set ERROR=%ERROR%,sieve.texi
 if ErrorLevel 1 set ERROR=%ERROR%,pgg.texi\r
 %EMACSINFO% message.texi\r
 if ErrorLevel 1 set ERROR=%ERROR%,message.texi\r
+%EMACSINFO% sasl.texi\r
+if ErrorLevel 1 set ERROR=%ERROR%,sasl.texi\r
 \r
 if not "%2" == "/copy" goto nocopy\r
-if not exist %GNUS_INFO_DIR% mkdir %GNUS_INFO_DIR%\r
+if not exist %GNUS_INFO_DIR%\nul mkdir %GNUS_INFO_DIR%\r
 \r
 echo.\r
 echo Stand by while copying info files.\r
@@ -155,6 +170,8 @@ xcopy /R /Q /Y sieve      %GNUS_INFO_DIR%
 if ErrorLevel 1 set ERROR=%ERROR%,copy-sieve-info\r
 xcopy /R /Q /Y pgg        %GNUS_INFO_DIR%\r
 if ErrorLevel 1 set ERROR=%ERROR%,copy-pgg-info\r
+xcopy /R /Q /Y sasl        %GNUS_INFO_DIR%\r
+if ErrorLevel 1 set ERROR=%ERROR%,copy-sasl-info\r
 \r
 echo.\r
 echo ***************************************************************************\r
@@ -164,6 +181,7 @@ echo * if they aren't already there:
 echo *\r
 echo * * PGG: (pgg).   Emacs interface to various PGP implementations.\r
 echo * * Sieve: (sieve).       Managing Sieve scripts in Emacs.\r
+echo * * SASL: (sasl). The Emacs SASL library.\r
 echo ***************************************************************************\r
 echo.\r
 \r
@@ -172,15 +190,24 @@ cd ..\etc
 echo.\r
 echo Stand by while copying etc files.\r
 echo.\r
-if not exist %GNUS_ETC_DIR% mkdir %GNUS_ETC_DIR%\r
+if not exist %GNUS_ETC_DIR%\nul mkdir %GNUS_ETC_DIR%\r
 xcopy /R /Q /Y gnus-tut.txt %GNUS_ETC_DIR%\r
 if ErrorLevel 1 set ERROR=%ERROR%,copy-etc-gnus-tut-txt\r
-if not exist %GNUS_ETC_DIR%\gnus mkdir %GNUS_ETC_DIR%\gnus\r
+if not exist %GNUS_ETC_DIR%\gnus\nul mkdir %GNUS_ETC_DIR%\gnus\r
 xcopy /R /Q /Y .\gnus\* %GNUS_ETC_DIR%\gnus\\r
 if ErrorLevel 1 set ERROR=%ERROR%,copy-etc-gnus-*\r
-if not exist %GNUS_ETC_DIR%\smilies mkdir %GNUS_ETC_DIR%\smilies\r
-xcopy /R /Q /Y .\smilies\* %GNUS_ETC_DIR%\smilies\\r
-if ErrorLevel 1 set ERROR=%ERROR%,copy-etc-smilies-*\r
+if not exist %GNUS_ETC_DIR%\images\nul mkdir %GNUS_ETC_DIR%\images\r
+xcopy /R /Q /Y .\images\*.??? %GNUS_ETC_DIR%\images\r
+if ErrorLevel 1 set ERROR=%ERROR%,copy-etc-images-*\r
+if not exist %GNUS_ETC_DIR%\images\gnus\nul mkdir %GNUS_ETC_DIR%\images\gnus\r
+xcopy /R /Q /Y .\images\gnus\* %GNUS_ETC_DIR%\images\gnus\\r
+if ErrorLevel 1 set ERROR=%ERROR%,copy-etc-images-gnus-*\r
+if not exist %GNUS_ETC_DIR%\images\mail\nul mkdir %GNUS_ETC_DIR%\images\mail\r
+xcopy /R /Q /Y .\images\mail\* %GNUS_ETC_DIR%\images\mail\\r
+if ErrorLevel 1 set ERROR=%ERROR%,copy-etc-images-mail-*\r
+if not exist %GNUS_ETC_DIR%\images\smilies\nul mkdir %GNUS_ETC_DIR%\images\smilies\r
+xcopy /R /Q /Y .\images\smilies\* %GNUS_ETC_DIR%\images\smilies\\r
+if ErrorLevel 1 set ERROR=%ERROR%,copy-etc-images-smilies-*\r
 goto warnings\r
 \r
 :nocopy\r
@@ -192,7 +219,7 @@ echo *
 echo * (add-to-list 'load-path "/Path/to/gnus/lisp")\r
 echo * (if (featurep 'xemacs)\r
 echo *     (add-to-list 'Info-directory-list "c:/Path/to/gnus/texi/")\r
-echo *   (add-to-list 'Info-default-directory-list "c:/Path/to/gnus/texi/")\r
+echo *   (add-to-list 'Info-default-directory-list "c:/Path/to/gnus/texi/"))\r
 echo * (require 'gnus-load)\r
 echo *\r
 echo * Replace c:/Path/to/gnus with the Path where your new Gnus is (that's here\r
@@ -283,3 +310,7 @@ set GNUS_INFO_DIR=
 set GNUS_ETC_DIR=\r
 set subdirwarning=\r
 set ERROR=\r
+\r
+goto skipArchTag\r
+   arch-tag: 502dd14c-acde-4f69-8e82-43203b12a82c\r
+:skipArchTag\r