1 ;;; gnus-vers.el --- Declare gnus version
3 ;; Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5 ;; Author: Keiichi Suzuki <keiichi@nanap.org>
6 ;; Katsumi Yamaoka <yamaoka@jpl.org>
7 ;; Keywords: news, mail, compatibility
9 ;; This file is part of T-gnus.
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.
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.
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.
30 (eval-when-compile (require 'cl))
36 (defconst gnus-revision-number "00"
37 "Revision number for this version of gnus.")
39 ;; Product information of this gnus.
40 (product-provide 'gnus-vers
41 (product-define "T-gnus" nil
43 (string-to-number gnus-revision-number))))
45 (defconst gnus-original-version-number "0.2"
46 "Version number for this version of Gnus.")
48 (provide 'running-pterodactyl-gnus-0_73-or-later)
50 (defconst gnus-original-product-name "No Gnus"
51 "Product name of the original version of Gnus.")
53 (defconst gnus-product-name (product-name (product-find 'gnus-vers))
54 "Product name of this version of gnus.")
56 (defconst gnus-version-number
59 (butlast (product-version (product-find 'gnus-vers)))
61 "Version number for this version of gnus.")
63 (defconst gnus-version
64 (format "%s %s r%s (based on %s v%s ; for SEMI 1.14 FLIM 1.14)"
65 gnus-product-name gnus-version-number gnus-revision-number
66 gnus-original-product-name gnus-original-version-number)
67 "Version string for this version of gnus.")
69 (defun gnus-version (&optional arg)
70 "Version number of this version of Gnus.
71 If ARG, insert string at point."
74 (insert (message "%s" gnus-version))
75 (message "%s" gnus-version)))
77 (defun gnus-extended-version ()
78 "Stringified gnus version."
79 (concat gnus-product-name "/" gnus-version-number
81 gnus-original-product-name " v" gnus-original-version-number ")"
82 (if (zerop (string-to-number gnus-revision-number))
84 (concat " (revision " gnus-revision-number ")"))
87 ;; gnus-vers.el ends here