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 set emacs=xemacs.exe
\r
16 call %1\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile
\r
17 if not "%2" == "copy" goto info
\r
18 if not "%2" == "/copy" goto info
\r
19 attrib -r %1\..\..\xemacs-packages\lisp\gnus\*.*
\r
20 copy *.el* %1\..\..\xemacs-packages\lisp\gnus
\r
23 set EMACSINFO=call %1\%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 "%2" == "copy" goto done
\r
29 if not "%2" == "/copy" goto done
\r
30 copy gnus %1\..\..\xemacs-packages\info
\r
31 copy gnus-?? %1\..\..\xemacs-packages\info
\r
32 copy message %1\..\..\xemacs-packages\info
\r
33 copy emacs-mime %1\..\..\xemacs-packages\info
\r
37 copy gnus-tut.txt %1\..\..\xemacs-packages\etc
\r
44 echo Usage: make-x.bat :xemacs-dir: [/copy]
\r
46 echo where: :xemacs-dir: is the directory you installed xemacs in
\r
47 echo (the directory where xemacs.exe is situated)
\r
48 echo eg. C:\Programme\XEmacs\XEmacs-21.4.3\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