X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=make.bat;h=c4c8cc454d5ee452169e841538abb648e0a16549;hb=732e1ff186c37ca82b84a21aaedd363949392004;hp=9e9936cf248d3086e799bea283da02de426f6caf;hpb=56eeb653e615cd1ab02b6bec6f74b1de91a44312;p=gnus diff --git a/make.bat b/make.bat index 9e9936cf2..c4c8cc454 100644 --- a/make.bat +++ b/make.bat @@ -28,18 +28,24 @@ set PWD= if "%1" == "" goto usage +rem Emacs 20.7 no longer includes emacs.bat. Use emacs.exe if the batch file is +rem not present -- this also fixes the problem about too many parameters on Win9x. +set emacs=emacs.exe +if exist %1\bin\emacs.bat set emacs=emacs.bat + cd lisp -call %1\bin\emacs.bat -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile -if not "%2" == "copy" goto info +call %1\bin\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile +if not "%2" == "/copy" goto info attrib -r %1\lisp\gnus\* copy *.el* %1\lisp\gnus :info +set EMACSINFO=call %1\bin\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo cd ..\texi -call %1\bin\emacs.bat -batch -q -no-site-file message.texi -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer -call %1\bin\emacs.bat -batch -q -no-site-file emacs-mime.texi -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer -call %1\bin\emacs.bat -batch -q -no-site-file gnus.texi -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer -if not "%2" == "copy" goto done +%EMACSINFO% message.texi +%EMACSINFO% emacs-mime.texi +%EMACSINFO% gnus.texi +if not "%2" == "/copy" goto done copy gnus %1\info copy gnus-?? %1\info copy message %1\info @@ -54,12 +60,16 @@ cd .. goto end :usage -echo Usage: make ^ [copy] +echo Usage: make :emacs-dir: [/copy] echo. -echo where: ^ is the directory you installed emacs in +echo where: :emacs-dir: is the directory you installed emacs in echo eg. d:\emacs\20.4 -echo copy indicates that the compiled files should be copied to your +echo /copy indicates that the compiled files should be copied to your echo emacs lisp, info, and etc directories +echo. +echo Note: If you have Emacs/w3 you should set the environment variable +echo W3DIR to the directory where w3 is installed eg. +echo set W3DIR=d:\lisp\w3-4.0pre46\lisp rem Restore PWD so whoever called this batch file doesn't get confused set PWD=%GNUS_PWD_SAVE%