Import Oort Gnus v0.13.
[elisp/gnus.git-] / make.bat
index c4c8cc4..cbd49df 100755 (executable)
--- a/make.bat
+++ b/make.bat
@@ -28,28 +28,41 @@ set PWD=
 \r
 if "%1" == "" goto usage\r
 \r
+rem Directory where the info files are installed\r
+set GNUS_INFO_DIR=%1\info\r
+\r
 rem Emacs 20.7 no longer includes emacs.bat. Use emacs.exe if the batch file is\r
 rem not present -- this also fixes the problem about too many parameters on Win9x.\r
 set emacs=emacs.exe\r
 if exist %1\bin\emacs.bat set emacs=emacs.bat\r
+set EMACSBATCH=call %1\bin\%emacs% -no-site-file -batch -q\r
 \r
 cd lisp\r
-call %1\bin\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile\r
+%EMACSBATCH% -l ./dgnushack.el -f dgnushack-compile\r
 if not "%2" == "/copy" goto info\r
 attrib -r %1\lisp\gnus\*\r
 copy *.el* %1\lisp\gnus\r
 \r
 :info\r
-set EMACSINFO=call %1\bin\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo\r
+set EMACSINFO=%EMACSBATCH% -l infohack.el -f batch-makeinfo\r
 cd ..\texi\r
 %EMACSINFO% message.texi\r
 %EMACSINFO% emacs-mime.texi\r
 %EMACSINFO% gnus.texi\r
 if not "%2" == "/copy" goto done\r
-copy gnus %1\info\r
-copy gnus-?? %1\info\r
-copy message %1\info\r
-copy emacs-mime %1\info\r
+copy gnus       %GNUS_INFO_DIR%\r
+copy gnus-?     %GNUS_INFO_DIR%\r
+copy gnus-??    %GNUS_INFO_DIR%\r
+copy message    %GNUS_INFO_DIR%\r
+copy message-?  %GNUS_INFO_DIR%\r
+copy emacs-mime %GNUS_INFO_DIR%\r
+copy sieve      %GNUS_INFO_DIR%\r
+copy pgg        %GNUS_INFO_DIR%\r
+echo Maybe you should add the following line to %GNUS_INFO_DIR%\dir:\r
+echo.\r
+echo * PGG: (pgg).             Emacs interface to various PGP implementations.\r
+echo * Sieve: (sieve). Managing Sieve scripts in Emacs.\r
+echo.\r
 \r
 :etc\r
 cd ..\etc\r
@@ -74,4 +87,6 @@ echo                 set W3DIR=d:\lisp\w3-4.0pre46\lisp
 rem Restore PWD so whoever called this batch file doesn't get confused\r
 set PWD=%GNUS_PWD_SAVE%\r
 set GNUS_PWD_SAVE=\r
+set EMACSBATCH=\r
+set GNUS_INFO_DIR=\r
 :end\r