X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=WL-MK;h=c42e4f36a3bfea9c7a440f488183ce4967404953;hb=d97aa2fa9cfebeea3b00b48f2d97c140300b7922;hp=0026e0aa3c67e9c4ce2e4ab2abc13300ffd8bf72;hpb=34df98d05a404c054572ea8635faa2a862434004;p=elisp%2Fwanderlust.git diff --git a/WL-MK b/WL-MK index 0026e0a..c42e4f3 100644 --- a/WL-MK +++ b/WL-MK @@ -103,13 +103,17 @@ (setq load-path (cons (expand-file-name UTILSDIR) load-path))) (require 'install) (load "./WL-ELS" nil nil t) - (condition-case () - (require 'mime-setup) - (error (error "No MIME module was detected. Please install SEMI"))) + ;; product.el version check + (require 'product) + (if (not (fboundp 'product-version-as-string)) + (error "Please install new APEL. See INSTALL or INSTALL.ja")) ;; smtp.el version check. (require 'smtp) (if (not (fboundp 'smtp-send-buffer)) - (error "Please install new FLIM. See INSTALL or INSTALL.ja")))) + (error "Please install new FLIM. See INSTALL or INSTALL.ja")) + (condition-case () + (require 'mime-setup) + (error (error "Cannot load `mime-setup'. Please install SEMI"))))) (defun config-wl-pixmap-dir (&optional packagedir) "Examine pixmap directory where icon files should go." @@ -137,6 +141,26 @@ (config-wl-pixmap-dir) (princ "\n")) +(defun update-version () + "Update version number of documents." + (config-wl-package) + (load-file "elmo/elmo-version.el") + (let ((version (mapconcat + 'number-to-string + (product-version (product-find 'elmo-version)) + "."))) + (princ (concat "Update version number to " version "\n")) + ;; generate version.tex + (with-temp-buffer + (insert "\\def\\versionnumber{" version "}\n") + (write-region (point-min) (point-max) (expand-file-name + "version.tex" "doc"))) + ;; generate version.texi + (with-temp-buffer + (insert "@set VERSION " version "\n") + (write-region (point-min) (point-max) (expand-file-name + "version.texi" "doc"))))) + (defun test-wl () "Run test suite for developer." (config-wl-package) @@ -219,7 +243,9 @@ (setq icon (car icons) icons (cdr icons) dest (expand-file-name (file-name-nondirectory icon) PIXMAPDIR)) - (princ (format "%s->%s\n" icon dest)) + (princ (format "%s -> %s\n" + (file-name-nondirectory icon) + (substring (file-name-directory dest) 0 -1))) (copy-file icon dest t)))) (defun install-wl-package () @@ -355,8 +381,7 @@ ))) (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) @@ -364,7 +389,7 @@ (defun wl-texinfo-install-file (lang) (let ((infofile (symbol-value (intern (format "wl-%s-info" lang))))) - (install-file infofile DOCDIR INFODIR))) + (install-file infofile DOCDIR INFODIR nil 'overwrite))) (defun wl-texinfo-install () (cond ((listp wl-info-lang) @@ -387,22 +412,22 @@ (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)