* WL-MK (wl-texinfo-format): Move condition for INFODIR into
authoryoichi <yoichi>
Sat, 22 Jun 2002 05:19:22 +0000 (05:19 +0000)
committeryoichi <yoichi>
Sat, 22 Jun 2002 05:19:22 +0000 (05:19 +0000)
wl-detect-info-directory.
(wl-detect-info-directory): Check INFODIR after WL-CFG is loaded.

ChangeLog
WL-MK

index 63b18aa..77f6f96 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-06-22  Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>
+
+       * WL-MK (wl-texinfo-format): Move condition for INFODIR into
+       wl-detect-info-directory.
+       (wl-detect-info-directory): Check INFODIR after WL-CFG is loaded.
+
 2002-06-17  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * WL-MK (wl-texinfo-install-file): Overwrite existing info.
diff --git a/WL-MK b/WL-MK
index fbc9789..c42e4f3 100644 (file)
--- a/WL-MK
+++ b/WL-MK
        )))
 
 (defun wl-texinfo-format ()
-  (unless INFODIR
-    (setq INFODIR (wl-detect-info-directory)))
+  (wl-detect-info-directory)
   (cond ((listp wl-info-lang)
         (mapcar 'wl-texinfo-format-file wl-info-lang))
        ((stringp wl-info-lang)
   (require 'info)
   (if (fboundp 'info-initialize)
       (info-initialize))
-  (let ((infodir (car command-line-args-left))
-       (info (wl-primary-info-file))
-       previous INFODIR)
-    (setq INFODIR
-         (if (string= infodir "NONE")
-             (if (setq previous
-                       (exec-installed-p info Info-directory-list
-                                         COMPRESS-SUFFIX-LIST))
-                 ;;(progn
-                 ;;(condition-case nil (delete-file previous))
-                 (directory-file-name (file-name-directory previous));)
-               (car Info-directory-list))
-           infodir))
-    (setq command-line-args-left (cdr command-line-args-left))
-    (princ (format "INFODIR is %s\n\n" INFODIR))
-    INFODIR))
+  (unless INFODIR
+    (let ((infodir (car command-line-args-left))
+         (info (wl-primary-info-file))
+         previous)
+      (setq INFODIR
+           (if (string= infodir "NONE")
+               (if (setq previous
+                         (exec-installed-p info Info-directory-list
+                                           COMPRESS-SUFFIX-LIST))
+                   ;;(progn
+                   ;;(condition-case nil (delete-file previous))
+                   (directory-file-name (file-name-directory previous));)
+                 (car Info-directory-list))
+             infodir))
+      (setq command-line-args-left (cdr command-line-args-left))))
+  (princ (format "INFODIR is %s\n\n" INFODIR)))
 
 (defun install-wl-info ()
   (wl-texinfo-format)