X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=make-x.bat;h=f741794b9bf834990b08c73d97f393a8d71e217a;hp=b2f2f975e6d49912a724e59105f6694b4f712548;hb=ee841ae2f07869f307fab965ec6fcf6a27127746;hpb=597b7225f39dac74fe829690f9c1f9168275848d diff --git a/make-x.bat b/make-x.bat index b2f2f975e..f741794b9 100644 --- a/make-x.bat +++ b/make-x.bat @@ -1,52 +1,67 @@ @echo off +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% set PWD= if "%1" == "" goto usage -if "%2" == "" goto usage + +rem Directory where the info files are installed +set GNUS_INFO_DIR=%1\..\..\xemacs-packages\info set emacs=xemacs.exe +if "%2" == "" set copy="false" +if "%2" == "copy" set copy=true +if "%2" == "/copy" set copy=true + +set EMACSBATCH=call %1\%emacs% -batch -q -no-site-file cd lisp -call %1\%2\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile -if not "%3" == "copy" goto info -attrib -r %1\lisp\gnus\* -copy *.el* %1\lisp\gnus +%EMACSBATCH% -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 :info -set EMACSINFO=call %1\%2\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo +set EMACSINFO=%EMACSBATCH% -l infohack.el -f batch-makeinfo cd ..\texi %EMACSINFO% message.texi %EMACSINFO% emacs-mime.texi %EMACSINFO% gnus.texi -if not "%3" == "copy" goto done -copy gnus %1\info -copy gnus-?? %1\info -copy message %1\info -copy emacs-mime %1\info +if not %copy%==true goto done +copy gnus %GNUS_INFO_DIR% +copy gnus-? %GNUS_INFO_DIR% +copy gnus-?? %GNUS_INFO_DIR% +copy message %GNUS_INFO_DIR% +copy message-? %GNUS_INFO_DIR% +copy emacs-mime %GNUS_INFO_DIR% +copy sieve %GNUS_INFO_DIR% +copy pgg %GNUS_INFO_DIR% +echo Maybe you should add the following line to %GNUS_INFO_DIR%\dir: +echo. +echo * PGG: (pgg). Emacs interface to various PGP implementations. +echo * Sieve: (sieve). Managing Sieve scripts in Emacs. +echo. :etc cd ..\etc -copy gnus-tut.txt %1\etc +copy gnus-tut.txt %1\..\..\xemacs-packages\etc :done cd .. goto end :usage -echo Usage: make :xemacs-dir: :xemacs-arch: [copy] +echo Usage: make-x.bat :xemacs-dir: [/copy] echo. -echo where: :xemacs-dir: is the directory you installed xemacs in -echo eg. C:\Progra~1\XEmacs\XEmacs-21.4.3 -echo :xemacs-arch: is the xemacs architecture you installed -echo eg. i586-pc-win32 -echo copy indicates that the compiled files should be copied to your +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 emacs lisp, info, and etc directories echo. echo Note: If you have Emacs/w3 you should set the environment variable @@ -56,4 +71,6 @@ echo set W3DIR=C:\Progra~1\XEmacs\xemacs-packages\lisp\w3 rem Restore PWD so whoever called this batch file doesn't get confused set PWD=%GNUS_PWD_SAVE% set GNUS_PWD_SAVE= +set EMACSBATCH= +set GNUS_INFO_DIR= :end