Sync with Nana-gnus 7.1.0.15.
[elisp/gnus.git-] / lisp / gnus-vers.el
1 ;;; gnus-vers.el --- Declare gnus version.
2
3 ;; Copyright (C) 2000 Free Software Foundation, Inc.
4
5 ;; Author: Keiichi Suzuki <keiichi@nanap.org>
6 ;;         Katsumi Yamaoka <yamaoka@jpl.org>
7 ;; Keywords: news, mail, compatibility
8
9 ;; This file is part of T-gnus.
10
11 ;; This program is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU General Public License as
13 ;; published by the Free Software Foundation; either version 2, or (at
14 ;; your option) any later version.
15
16 ;; This program is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 ;; General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with this program; see the file COPYING.  If not, write to
23 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
25
26 ;;; Commentary:
27
28 ;;; Code:
29
30 (require 'product)
31 (provide 'gnus-vers)
32
33 (defconst gnus-revision-number "17"
34   "Revision number for this version of gnus.")
35
36 ;; Product information of this gnus.
37 (product-provide 'gnus-vers
38   (product-define "T-gnus" nil '(6 14 1)))
39
40 (defconst gnus-original-version-number "5.8.3"
41   "Version number for this version of Gnus.")
42
43 (provide 'running-pterodactyl-gnus-0_73-or-later)
44
45 (defconst gnus-original-product-name "Gnus"
46   "Product name of the original version of Gnus.")
47
48 (defconst gnus-product-name (product-name (product-find 'gnus-vers))
49   "Product name of this version of gnus.")
50
51 (defconst gnus-version-number (mapconcat
52                                'number-to-string
53                                (product-version (product-find 'gnus-vers))
54                                ".")
55   "Version number for this version of gnus.")
56
57 (defconst gnus-version
58   (format "%s %s r%s (based on %s v%s ; for SEMI 1.13, FLIM 1.13)"
59           gnus-product-name gnus-version-number gnus-revision-number
60           gnus-original-product-name gnus-original-version-number)
61   "Version string for this version of gnus.")
62
63 (defun gnus-version (&optional arg)
64   "Version number of this version of Gnus.
65 If ARG, insert string at point."
66   (interactive "P")
67   (if arg
68       (insert (message "%s" gnus-version))
69     (message "%s" gnus-version)))
70
71 (defun gnus-extended-version ()
72   "Stringified gnus version."
73   (concat (product-string 'gnus)
74           " (based on "
75           gnus-original-product-name " v" gnus-original-version-number ")"
76           (if (zerop (string-to-number gnus-revision-number))
77               ""
78             (concat " (revision " gnus-revision-number ")"))
79           ))
80
81 ;; gnus-vers.el ends here