3 rem Modified by ShengHuo Zhu (zsh@cs.rochester.edu)
\r
4 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
12 if "%2" == "" goto usage
\r
14 set emacs=xemacs.exe
\r
17 call %1\%2\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile
\r
18 if not "%3" == "copy" goto info
\r
19 attrib -r %1\lisp\gnus\*
\r
20 copy *.el* %1\lisp\gnus
\r
23 set EMACSINFO=call %1\%2\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo
\r
25 %EMACSINFO% message.texi
\r
26 %EMACSINFO% emacs-mime.texi
\r
27 %EMACSINFO% gnus.texi
\r
28 if not "%3" == "copy" goto done
\r
30 copy gnus-?? %1\info
\r
31 copy message %1\info
\r
32 copy emacs-mime %1\info
\r
36 copy gnus-tut.txt %1\etc
\r
43 echo Usage: make :xemacs-dir: :xemacs-arch: [copy]
\r
45 echo where: :xemacs-dir: is the directory you installed xemacs in
\r
46 echo eg. C:\Progra~1\XEmacs\XEmacs-21.4.3
\r
47 echo :xemacs-arch: is the xemacs architecture you installed
\r
48 echo eg. i586-pc-win32
\r
49 echo copy indicates that the compiled files should be copied to your
\r
50 echo emacs lisp, info, and etc directories
\r
52 echo Note: If you have Emacs/w3 you should set the environment variable
\r
53 echo W3DIR to the directory where w3 is installed eg.
\r
54 echo set W3DIR=C:\Progra~1\XEmacs\xemacs-packages\lisp\w3
\r
56 rem Restore PWD so whoever called this batch file doesn't get confused
\r
57 set PWD=%GNUS_PWD_SAVE%
\r