Add comment.
[elisp/wanderlust.git] / elmo / elmo-version.el
1 ;;; elmo-version.el -- Version information for ELMO.
2
3 ;; Copyright 2000 Yuuichi Teranishi <teranisi@gohome.org>
4
5 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
6 ;; Keywords: mail, net news
7
8 ;; This file is part of ELMO (Elisp Library for Message Orchestration).
9
10 ;; This program is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
13 ;; any later version.
14 ;;
15 ;; This program is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ;; GNU General Public License for more details.
19 ;;
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24 ;;
25
26 ;;; Commentary:
27 ;; 
28
29 ;;; Code:
30 ;; 
31 (require 'product)
32 (provide 'elmo-version)                 ; have to declare in the top.
33
34 (product-provide 'elmo-version
35   (product-define "ELMO" nil '(2 3 90)))
36
37 ;; set version-string
38 (if (fboundp 'product-version-as-string)
39     (product-version-as-string 'elmo-version)
40   (product-string-1 'elmo-version))     ; APEL 10.2 or earlier
41
42 (defun elmo-version ()
43   "Return ELMO version."
44   (product-string-1 'elmo-version))
45
46
47 ;; for backward compatibility
48 (defconst elmo-appname (product-name (product-find 'elmo-version)))
49 (make-obsolete-variable
50  'elmo-appname
51  "use (product-name (product-find 'elmo-version)) insteaed.")
52
53 (defconst elmo-version (product-version-string (product-find 'elmo-version)))
54 (make-obsolete-variable
55  'elmo-version
56  "use (product-version-string (product-find 'elmo-version)) instead.")
57
58 ;;; elmo-version.el ends here