2001-09-18 22:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
[gnus] / make-x.bat
1 @echo off\r
2 \r
3 rem Modified by ShengHuo Zhu (zsh@cs.rochester.edu)\r
4 rem Originally from make.bat by David Charlap (shamino@writeme.com)\r
5 rem\r
6 \r
7 rem Clear PWD so emacs doesn't get confused\r
8 set GNUS_PWD_SAVE=%PWD%\r
9 set PWD=\r
10 \r
11 if "%1" == "" goto usage\r
12 if "%2" == "" goto usage\r
13 \r
14 set emacs=xemacs.exe\r
15 \r
16 cd lisp\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
21 \r
22 :info\r
23 set EMACSINFO=call %1\%2\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo\r
24 cd ..\texi\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
29 copy gnus %1\info\r
30 copy gnus-?? %1\info\r
31 copy message %1\info\r
32 copy emacs-mime %1\info\r
33 \r
34 :etc\r
35 cd ..\etc\r
36 copy gnus-tut.txt %1\etc\r
37 \r
38 :done\r
39 cd ..\r
40 goto end\r
41 \r
42 :usage\r
43 echo Usage: make :xemacs-dir: :xemacs-arch: [copy]\r
44 echo.\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
51 echo.\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
55 \r
56 rem Restore PWD so whoever called this batch file doesn't get confused\r
57 set PWD=%GNUS_PWD_SAVE%\r
58 set GNUS_PWD_SAVE=\r
59 :end\r