X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;ds=sidebyside;f=make-x.bat;h=4f5c4e09cbe45916a67d56c7c75ec7d75eac5c72;hb=b53d34e24447ef0f9868377361812d357a85eb02;hp=ce347d20de028c98d7804bf7c0f400f5d327bbb5;hpb=0429ff01ab304bb434566f899bee509118f1fe87;p=gnus diff --git a/make-x.bat b/make-x.bat index ce347d20d..4f5c4e09c 100644 --- a/make-x.bat +++ b/make-x.bat @@ -3,7 +3,6 @@ rem Modified once more by Frank Schmitt (ich@Frank-Schmitt.net) rem Modified by ShengHuo Zhu (zsh@cs.rochester.edu) rem Originally from make.bat by David Charlap (shamino@writeme.com) -rem rem Clear PWD so emacs doesn't get confused set GNUS_PWD_SAVE=%PWD% @@ -12,20 +11,23 @@ set PWD= if "%1" == "" goto usage set emacs=xemacs.exe +if "%2" == "" set copy="false" +if "%2" == "copy" set copy=true +if "%2" == "/copy" set copy=true cd lisp -call %1\%emacs% -batch -nw -q -no-site-file -l ./dgnushack.el -f dgnushack-compile -if not "%2" == "copy" goto info +call %1\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile +if not %copy%==true goto info attrib -r %1\..\..\xemacs-packages\lisp\gnus\*.* -copy *.el* %1\..\..\xemacs-packages\lisp\gnus +copy *.el? %1\..\..\xemacs-packages\lisp\gnus :info -set EMACSINFO=call %1\%emacs% -no-site-file -no-init-file -batch -nw -q -l infohack.el -f batch-makeinfo +set EMACSINFO=call %1\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo cd ..\texi %EMACSINFO% message.texi %EMACSINFO% emacs-mime.texi %EMACSINFO% gnus.texi -if not "%2" == "copy" goto done +if not %copy%==true goto done copy gnus %1\..\..\xemacs-packages\info copy gnus-?? %1\..\..\xemacs-packages\info copy message %1\..\..\xemacs-packages\info @@ -40,12 +42,12 @@ cd .. goto end :usage -echo Usage: make :xemacs-dir: [copy] +echo Usage: make-x.bat :xemacs-dir: [/copy] echo. echo where: :xemacs-dir: is the directory you installed xemacs in echo (the directory where xemacs.exe is situated) echo eg. C:\Programme\XEmacs\XEmacs-21.4.3\i586-pc-win32 -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