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
14 if "%2" == "" set copy="false"
\r
15 if "%2" == "copy" set copy=true
\r
16 if "%2" == "/copy" set copy=true
\r
19 call %1\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile
\r
20 if not %copy%==true goto info
\r
21 attrib -r %1\..\..\xemacs-packages\lisp\gnus\*.*
\r
22 copy *.el? %1\..\..\xemacs-packages\lisp\gnus
\r
25 set EMACSINFO=call %1\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo
\r
27 %EMACSINFO% message.texi
\r
28 %EMACSINFO% emacs-mime.texi
\r
29 %EMACSINFO% gnus.texi
\r
30 if not %copy%==true goto done
\r
31 copy gnus %1\..\..\xemacs-packages\info
\r
32 copy gnus-?? %1\..\..\xemacs-packages\info
\r
33 copy message %1\..\..\xemacs-packages\info
\r
34 copy emacs-mime %1\..\..\xemacs-packages\info
\r
38 copy gnus-tut.txt %1\..\..\xemacs-packages\etc
\r
45 echo Usage: make-x.bat :xemacs-dir: [/copy]
\r
47 echo where: :xemacs-dir: is the directory you installed xemacs in
\r
48 echo (the directory where xemacs.exe is situated)
\r
49 echo eg. C:\Programme\XEmacs\XEmacs-21.4.3\i586-pc-win32
\r
50 echo /copy indicates that the compiled files should be copied to your
\r
51 echo emacs lisp, info, and etc directories
\r
53 echo Note: If you have Emacs/w3 you should set the environment variable
\r
54 echo W3DIR to the directory where w3 is installed eg.
\r
55 echo set W3DIR=C:\Progra~1\XEmacs\xemacs-packages\lisp\w3
\r
57 rem Restore PWD so whoever called this batch file doesn't get confused
\r
58 set PWD=%GNUS_PWD_SAVE%
\r