1 ;;; elmo-version.el -- Version information for ELMO.
3 ;; Copyright (C) 2000 Yuuichi Teranishi <teranisi@gohome.org>
4 ;; Copyright (C) 2000 TAKAHASHI Kaoru <kaoru@kaisei.org>
6 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
7 ;; TAKAHASHI Kaoru <kaoru@kaisei.org>
8 ;; Keywords: mail, net news
10 ;; This file is part of ELMO (Elisp Library for Message Orchestration).
12 ;; This program is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
17 ;; This program is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
34 (provide 'elmo-version) ; before product-provide
36 ;; product-define in the first place
37 (product-provide 'elmo-version
38 (product-define "ELMO" nil '(2 4 0)))
40 ;; For APEL 10.2 or earlier.
41 (defun-maybe product-version-as-string (product)
42 "Return version number of product as a string.
43 PRODUCT is a product structure which returned by `product-define'.
44 If optional argument UPDATE is non-nil, then regenerate
45 `produce-version-string' from `product-version'."
46 (setq product (product-find product))
47 (or (product-version-string product)
48 (and (product-version product)
49 (product-set-version-string product
50 (mapconcat (function int-to-string)
51 (product-version product)
55 (product-version-as-string 'elmo-version)
57 (defun elmo-version ()
58 "Return ELMO version."
59 (product-string-1 'elmo-version))
62 ;; for backward compatibility
63 (defconst elmo-appname (product-name (product-find 'elmo-version)))
64 (make-obsolete-variable
66 "use (product-name (product-find 'elmo-version)) insteaed.")
68 (defconst elmo-version (product-version-string (product-find 'elmo-version)))
69 (make-obsolete-variable
71 "use (product-version-string (product-find 'elmo-version)) instead.")
73 ;;; elmo-version.el ends here