rem Modified once more by Frank Schmitt (ich@Frank-Schmitt.net)\r
rem Modified by ShengHuo Zhu (zsh@cs.rochester.edu)\r
rem Originally from make.bat by David Charlap (shamino@writeme.com)\r
-rem\r
\r
rem Clear PWD so emacs doesn't get confused\r
set GNUS_PWD_SAVE=%PWD%\r
\r
if "%1" == "" goto usage\r
\r
+rem Directory where the info files are installed\r
+set GNUS_INFO_DIR=%1\..\..\xemacs-packages\info\r
+\r
set emacs=xemacs.exe\r
+if "%2" == "" set copy="false"\r
+if "%2" == "copy" set copy=true\r
+if "%2" == "/copy" set copy=true\r
+\r
+set EMACSBATCH=call %1\%emacs% -batch -q -no-site-file\r
\r
cd lisp\r
-call %1\%emacs% -batch -nw -q -no-site-file -l ./dgnushack.el -f dgnushack-compile\r
-if not "%2" == "copy" goto info\r
+%EMACSBATCH% -l ./dgnushack.el -f dgnushack-compile\r
+if not %copy%==true goto info\r
attrib -r %1\..\..\xemacs-packages\lisp\gnus\*.*\r
-copy *.el* %1\..\..\xemacs-packages\lisp\gnus\r
+copy *.el? %1\..\..\xemacs-packages\lisp\gnus\r
\r
:info\r
-set EMACSINFO=call %1\%emacs% -no-site-file -no-init-file -batch -nw -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\..\..\xemacs-packages\info\r
-copy gnus-?? %1\..\..\xemacs-packages\info\r
-copy message %1\..\..\xemacs-packages\info\r
-copy emacs-mime %1\..\..\xemacs-packages\info\r
+if not %copy%==true goto done\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
goto end\r
\r
:usage\r
-echo Usage: make :xemacs-dir: [copy]\r
+echo Usage: make-x.bat :xemacs-dir: [/copy]\r
echo.\r
echo where: :xemacs-dir: is the directory you installed xemacs in \r
echo (the directory where xemacs.exe is situated)\r
echo eg. C:\Programme\XEmacs\XEmacs-21.4.3\i586-pc-win32\r
-echo copy indicates that the compiled files should be copied to your\r
+echo /copy indicates that the compiled files should be copied to your\r
echo emacs lisp, info, and etc directories\r
echo.\r
echo Note: If you have Emacs/w3 you should set the environment variable \r
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