Importing pgnus-0.64
[elisp/gnus.git-] / make.bat
index 6f422da..c3c9e2e 100755 (executable)
--- a/make.bat
+++ b/make.bat
@@ -22,6 +22,10 @@ rem
 rem which will allow the batch file to accept an unlimited number of
 rem parameters.
 
+rem Clear PWD so emacs doesn't get confused
+set GNUS_PWD_SAVE=%PWD%
+set PWD=
+
 if "%1" == "" goto usage
 
 cd lisp
@@ -31,8 +35,8 @@ copy *.el* %1\lisp
 
 :info
 cd ..\texi
-call %1\bin\emacs.bat -batch -q -no-site-file gnus.texi -l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -fsave-buffer
-call %1\bin\emacs.bat -batch -q -no-site-file message.texi -l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -fsave-buffer
+call %1\bin\emacs.bat -batch -q -no-site-file gnus.texi -l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
+call %1\bin\emacs.bat -batch -q -no-site-file message.texi -l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
 if not "%2" == "copy" goto done
 copy gnus %1\info
 copy gnus-?? %1\info
@@ -47,11 +51,14 @@ cd ..
 goto end
 
 :usage
-echo Usage: install ^<emacs-dir^> [copy]
+echo Usage: make ^<emacs-dir^> [copy]
 echo.
 echo where: ^<emacs-dir^> is the directory you installed emacs in
 echo                    eg. d:\emacs\19.34
 echo        copy indicates that the compiled files should be copied to your
 echo             emacs lisp, info, and etc directories
 
+rem Restore PWD so whoever called this batch file doesn't get confused
+set PWD=%GNUS_PWD_SAVE%
+set GNUS_PWD_SAVE=
 :end