From: yamaoka Date: Thu, 18 Jan 2001 09:13:41 +0000 (+0000) Subject: * lisp/gnus-vers.el (gnus-revision-number): Increment to 01. X-Git-Tag: t-gnus-6_14_6-01 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=164b954ce12849ce397bf7f1d8b7888c3d5c854d;p=elisp%2Fgnus.git- * lisp/gnus-vers.el (gnus-revision-number): Increment to 01. * lisp/dgnushack.el (dgnushack-make-autoloads): Do nothing if the files for autoloads already exist. (dgnushack-unexporting-files): More useful message. * lisp/Makefile.in (install): Call `clever' before installing. (install-lisp): Remove. (clever): Check for whether the all elc files should be recompiled. * Makefile.in (xclever): New target. (install-package-lisp): Replace `install-lisp' with `instal'. (install-package-ja): Replace `xlick' with `xclever'. (install-package): Ditto. * Makefile.in: Unset `PWD' for Meadow/NTEmacs. --- diff --git a/ChangeLog b/ChangeLog index b890800..7aca149 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,26 @@ +2001-01-18 Katsumi Yamaoka + + * lisp/gnus-vers.el (gnus-revision-number): Increment to 01. + +2001-01-17 Katsumi Yamaoka + + * lisp/dgnushack.el (dgnushack-make-autoloads): Do nothing if the + files for autoloads already exist. + (dgnushack-unexporting-files): More useful message. + + * lisp/Makefile.in (install): Call `clever' before installing. + (install-lisp): Remove. + (clever): Check for whether the all elc files should be recompiled. + + * Makefile.in (xclever): New target. + (install-package-lisp): Replace `install-lisp' with `instal'. + (install-package-ja): Replace `xlick' with `xclever'. + (install-package): Ditto. + +2001-01-17 KOSEKI Yoshinori + + * Makefile.in: Unset `PWD' for Meadow/NTEmacs. + 2001-01-15 Katsumi Yamaoka * lisp/nnheader.el: Require `pces', `poem' and `std11' to reduce diff --git a/Makefile.in b/Makefile.in index c012499..4998d58 100644 --- a/Makefile.in +++ b/Makefile.in @@ -10,6 +10,12 @@ XEMACS = @XEMACS@ PACKAGEDIR = @PACKAGEDIR@ GNUS_PRODUCT_NAME = @GNUS_PRODUCT_NAME@ +# It may be needed for Meadow/NTEmacs when sh.exe is used for SHELL. +# Because Meadow/NTEmacs will get the value of the current-directory from +# the environment variable PWD, but sh.exe will not take care of it even +# if the current-directory has changed. So we should invalidate it. +PWD= + # It will be used to look for the XEmacs package path if this file is # mis-configured (e.g. configured for FSFmacs). EXAMINE_PACKAGEDIR = $(XEMACS) -batch -q -no-site-file -eval \ @@ -48,11 +54,11 @@ install-info-ja: cd texi && $(MAKE) EMACS="$(EMACS)" infodir="$(infodir)" install-ja ## Rule for XEmacs package. -install-package: xlick compose-package remove-extra-files-in-package \ +install-package: xclever compose-package remove-extra-files-in-package \ install-package-lisp \ install-package-info install-package-manifest -install-package-ja: xlick compose-package remove-extra-files-in-package \ +install-package-ja: xclever compose-package remove-extra-files-in-package \ install-package-lisp \ install-package-info install-package-info-ja \ install-package-manifest @@ -70,10 +76,10 @@ install-package-lisp: fi; \ echo "cd lisp && $(MAKE) EMACS=$(XEMACS)" \ "lispdir=$$package_dir""/lisp/$(GNUS_PRODUCT_NAME)" \ - "install-lisp"; \ + "install"; \ cd lisp && $(MAKE) EMACS="$(XEMACS)" \ lispdir="$$package_dir""/lisp/$(GNUS_PRODUCT_NAME)" \ - install-lisp + install install-package-info: @if test x$(PACKAGEDIR) = x; then \ @@ -123,6 +129,9 @@ compose-package: cd lisp && $(MAKE) EMACS="$(XEMACS)" compose-package ## +xclever: + cd lisp && $(MAKE) EMACS="$(XEMACS)" lispdir="$(lispdir)" clever + xlick: cd lisp && $(MAKE) EMACS="$(XEMACS)" lispdir="$(lispdir)" all diff --git a/lisp/Makefile.in b/lisp/Makefile.in index fa8df3b..2ac09dc 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -28,12 +28,28 @@ warn: # The "clever" rule is unsafe, since redefined macros are loaded from # .elc files, and not the .el file. clever some: + @if test -f $(srcdir)/gnus.elc; then \ + echo \ + "checking for whether the all elc files should be recompiled..."; \ + RM_ELC=nil; \ + if test `$(EMACS) -batch -q -no-site-file \ + -eval "(princ (format \"%s\" (featurep (quote xemacs))))" \ + 2>/dev/null` = t; then \ + test ! -f $(srcdir)/gnus-xmas.elc && RM_ELC=t; \ + else \ + test -f $(srcdir)/gnus-xmas.elc && RM_ELC=t; \ + fi; \ + if test $$RM_ELC = t; then \ + echo " => yes; rm -f *.elc auto-autoloads.el custom-load.el"; \ + rm -f *.elc auto-autoloads.el custom-load.el; \ + else \ + echo " => unnecessary"; \ + fi; \ + fi W3DIR=$(W3DIR) lispdir=$(lispdir) \ srcdir=$(srcdir) $(EMACS) $(FLAGS) -f dgnushack-compile -install: clever install-lisp - -install-lisp: +install: clever $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir) @for p in `$(EXPORTING_FILES)`; do \ echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \ diff --git a/lisp/dgnushack.el b/lisp/dgnushack.el index d46fd34..3829f3a 100644 --- a/lisp/dgnushack.el +++ b/lisp/dgnushack.el @@ -259,19 +259,29 @@ Try to re-configure with --with-addpath=FLIM_PATH and run make again. (defconst dgnushack-unexporting-files (append '("dgnushack.el" "dgnuspath.el" "lpath.el" "ptexinfmt.el") - (unless (or (condition-case nil + (unless (or (condition-case code (require 'w3-forms) - (error nil)) + (error + (message "No w3: %s %s retrying..." code + (locate-library "w3-forms")) + nil)) ;; Maybe mis-configured Makefile is used (e.g. ;; configured for FSFmacs but XEmacs is running). (let ((lp (delete dgnushack-w3-dir (copy-sequence load-path)))) - (when (condition-case nil - (let ((load-path lp)) - (require 'w3-forms)) - (error nil)) - ;; If success, fix `load-path' for compiling. - (setq load-path lp)))) + (if (let ((load-path lp)) + (condition-case nil + (require 'w3-forms) + (error nil))) + ;; If success, fix `load-path' for compiling. + (progn + (setq load-path lp) + (message " => fixed; W3DIR=%s" + (file-name-directory + (locate-library "w3-forms"))) + t) + (message " => ignored") + nil))) '("nnweb.el" "nnlistserv.el" "nnultimate.el" "nnslashdot.el" "nnwarchive.el" "webmail.el" "nnwfm.el")) @@ -472,28 +482,39 @@ Modify to suit your needs.")) (defun dgnushack-make-autoloads () "Make auto-autoloads.el, custom-load.el and then compile them." - (let (make-backup-files) - (message "Updating autoloads for directory %s..." default-directory) - (let ((generated-autoload-file "auto-autoloads.el") - (si:message (symbol-function 'message)) - noninteractive) - (defun message (fmt &rest args) - (cond ((and (string-equal "Generating autoloads for %s..." fmt) - (file-exists-p (file-name-nondirectory (car args)))) - (funcall si:message fmt (file-name-nondirectory (car args)))) - ((string-equal "No autoloads found in %s" fmt)) - ((string-equal "Generating autoloads for %s...done" fmt)) - (t (apply si:message fmt args)))) - (unwind-protect - (update-autoloads-from-directory default-directory) - (fset 'message si:message))) - (byte-compile-file "auto-autoloads.el") - (with-temp-buffer - (let ((standard-output (current-buffer))) - (Custom-make-dependencies ".")) - (message "%s" (buffer-string))) - (require 'cus-load) - (byte-compile-file "custom-load.el"))) + (let ((auto-autoloads (expand-file-name "auto-autoloads.el" srcdir)) + (custom-load (expand-file-name "custom-load.el" srcdir))) + (unless (and (file-exists-p auto-autoloads) + (file-exists-p (concat auto-autoloads "c")) + (file-newer-than-file-p (concat auto-autoloads "c") + auto-autoloads) + (file-exists-p custom-load) + (file-exists-p (concat custom-load "c")) + (file-newer-than-file-p (concat custom-load "c") + custom-load)) + (let (make-backup-files) + (message "Updating autoloads for directory %s..." default-directory) + (let ((generated-autoload-file auto-autoloads) + (si:message (symbol-function 'message)) + noninteractive) + (defun message (fmt &rest args) + (cond ((and (string-equal "Generating autoloads for %s..." fmt) + (file-exists-p (file-name-nondirectory (car args)))) + (funcall si:message + fmt (file-name-nondirectory (car args)))) + ((string-equal "No autoloads found in %s" fmt)) + ((string-equal "Generating autoloads for %s...done" fmt)) + (t (apply si:message fmt args)))) + (unwind-protect + (update-autoloads-from-directory default-directory) + (fset 'message si:message))) + (byte-compile-file auto-autoloads) + (with-temp-buffer + (let ((standard-output (current-buffer))) + (Custom-make-dependencies ".")) + (message "%s" (buffer-string))) + (require 'cus-load) + (byte-compile-file custom-load))))) (defun dgnushack-remove-extra-files-in-package () "Remove extra files in the lisp directory of the XEmacs package." diff --git a/lisp/gnus-vers.el b/lisp/gnus-vers.el index f22ee9f..e3cccae 100644 --- a/lisp/gnus-vers.el +++ b/lisp/gnus-vers.el @@ -31,7 +31,7 @@ (require 'product) (provide 'gnus-vers) -(defconst gnus-revision-number "00" +(defconst gnus-revision-number "01" "Revision number for this version of gnus.") ;; Product information of this gnus.