3 rem Modified once more by Frank Schmitt (ich@Frank-Schmitt.net)
\r
4 rem Modified by ShengHuo Zhu (zsh@cs.rochester.edu)
\r
5 rem Originally from make.bat by David Charlap (shamino@writeme.com)
\r
7 rem Clear PWD so emacs doesn't get confused
\r
8 set GNUS_PWD_SAVE=%PWD%
\r
11 if "%1" == "" goto usage
\r
13 rem Directory where the info files are installed
\r
14 set GNUS_INFO_DIR=%1\..\..\xemacs-packages\info
\r
16 set emacs=xemacs.exe
\r
17 if "%2" == "" set copy="false"
\r
18 if "%2" == "copy" set copy=true
\r
19 if "%2" == "/copy" set copy=true
\r
21 set EMACSBATCH=call %1\%emacs% -batch -q -no-site-file
\r
24 %EMACSBATCH% -l ./dgnushack.el -f dgnushack-compile
\r
25 if not %copy%==true goto info
\r
26 attrib -r %1\..\..\xemacs-packages\lisp\gnus\*.*
\r
27 copy *.el? %1\..\..\xemacs-packages\lisp\gnus
\r
30 set EMACSINFO=%EMACSBATCH% -l infohack.el -f batch-makeinfo
\r
32 %EMACSINFO% message.texi
\r
33 %EMACSINFO% emacs-mime.texi
\r
34 %EMACSINFO% gnus.texi
\r
35 if not %copy%==true goto done
\r
36 copy gnus %GNUS_INFO_DIR%
\r
37 copy gnus-? %GNUS_INFO_DIR%
\r
38 copy gnus-?? %GNUS_INFO_DIR%
\r
39 copy message %GNUS_INFO_DIR%
\r
40 copy message-? %GNUS_INFO_DIR%
\r
41 copy emacs-mime %GNUS_INFO_DIR%
\r
42 copy sieve %GNUS_INFO_DIR%
\r
43 copy pgg %GNUS_INFO_DIR%
\r
44 echo Maybe you should add the following line to %GNUS_INFO_DIR%\dir:
\r
46 echo * PGG: (pgg). Emacs interface to various PGP implementations.
\r
47 echo * Sieve: (sieve). Managing Sieve scripts in Emacs.
\r
52 copy gnus-tut.txt %1\..\..\xemacs-packages\etc
\r
59 echo Usage: make-x.bat :xemacs-dir: [/copy]
\r
61 echo where: :xemacs-dir: is the directory you installed xemacs in
\r
62 echo (the directory where xemacs.exe is situated)
\r
63 echo eg. C:\Programme\XEmacs\XEmacs-21.4.3\i586-pc-win32
\r
64 echo /copy indicates that the compiled files should be copied to your
\r
65 echo emacs lisp, info, and etc directories
\r
67 echo Note: If you have Emacs/w3 you should set the environment variable
\r
68 echo W3DIR to the directory where w3 is installed eg.
\r
69 echo set W3DIR=C:\Progra~1\XEmacs\xemacs-packages\lisp\w3
\r
71 rem Restore PWD so whoever called this batch file doesn't get confused
\r
72 set PWD=%GNUS_PWD_SAVE%
\r