~ubuntu-branches/ubuntu/saucy/wl/saucy-proposed

« back to all changes in this revision

Viewing changes to elmo/elmo-version.el

  • Committer: Bazaar Package Importer
  • Author(s): Takuo KITAME
  • Date: 2002-02-20 21:51:16 UTC
  • Revision ID: james.westby@ubuntu.com-20020220215116-htmbfdwsdr25nnhm
Tags: upstream-2.8.1
ImportĀ upstreamĀ versionĀ 2.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;;; elmo-version.el --- Version information for ELMO.
 
2
 
 
3
;; Copyright (C) 2000-2001 Yuuichi Teranishi <teranisi@gohome.org>
 
4
;; Copyright (C) 2000-2001 TAKAHASHI Kaoru <kaoru@kaisei.org>
 
5
 
 
6
;; Author: Yuuichi Teranishi <teranisi@gohome.org>
 
7
;;      TAKAHASHI Kaoru <kaoru@kaisei.org>
 
8
;; Keywords: mail, net news
 
9
 
 
10
;; This file is part of ELMO (Elisp Library for Message Orchestration).
 
11
 
 
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)
 
15
;; any later version.
 
16
;;
 
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.
 
21
;;
 
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.
 
26
;;
 
27
 
 
28
;;; Commentary:
 
29
;;
 
30
;; Put the following lines to each file of ELMO package.
 
31
;;
 
32
;; (require 'product)
 
33
;; (product-provide (provide FEATURE) (require 'elmo-version))
 
34
 
 
35
;;; Code:
 
36
;;
 
37
(require 'product)
 
38
(provide 'elmo-version)                 ; before product-provide
 
39
 
 
40
;; product-define in the first place
 
41
(product-provide 'elmo-version
 
42
  ;; Don't forget to check `wl-version.el' and Info.
 
43
  (product-define "ELMO" nil '(2 8 1)))
 
44
 
 
45
;; set version-string
 
46
(product-version-as-string 'elmo-version)
 
47
 
 
48
(defun elmo-version ()
 
49
  "Return ELMO version."
 
50
  (product-string-1 'elmo-version))
 
51
 
 
52
;; for backward compatibility
 
53
(defconst elmo-appname (product-name (product-find 'elmo-version)))
 
54
(make-obsolete-variable
 
55
 'elmo-appname
 
56
 "use (product-name (product-find 'elmo-version)) instead.")
 
57
 
 
58
(defconst elmo-version (product-version-string (product-find 'elmo-version)))
 
59
(make-obsolete-variable
 
60
 'elmo-version
 
61
 "use (product-version-string (product-find 'elmo-version)) instead.")
 
62
 
 
63
;;; elmo-version.el ends here