trampver.el 2.07 KB
Newer Older
1 2 3
;;; trampver.el --- Transparent Remote Access, Multiple Protocol
;;; lisp/trampver.el.  Generated from trampver.el.in by configure.

4 5
;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009,
;;   2010 Free Software Foundation, Inc.
6

Michael Albinus's avatar
Michael Albinus committed
7
;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
8
;; Keywords: comm, processes
9
;; Package: tramp
10 11 12

;; This file is part of GNU Emacs.

13
;; GNU Emacs is free software: you can redistribute it and/or modify
14
;; it under the terms of the GNU General Public License as published by
15 16
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
17 18 19 20 21 22 23

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
24
;; along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
25 26 27

;;; Code:

28 29 30 31 32
;; In the Tramp CVS repository, the version number and the bug report
;; address are auto-frobbed from configure.ac, so you should edit that
;; file and run "autoconf && ./configure" to change them.  (X)Emacs
;; version check is defined in macro AC_EMACS_INFO of aclocal.m4;
;; should be changed only there.
33

34
;;;###tramp-autoload
35
(defconst tramp-version "2.2.1-pre"
36 37
  "This version of Tramp.")

38
;;;###tramp-autoload
Michael Albinus's avatar
Michael Albinus committed
39
(defconst tramp-bug-report-address "tramp-devel@gnu.org"
40 41
  "Email address to send bug reports to.")

42
;; Check for (X)Emacs version.
43 44 45 46 47
(let ((x (if (or (>= emacs-major-version 22)
		 (and (featurep 'xemacs)
		      (= emacs-major-version 21)
		      (>= emacs-minor-version 4)))
	     "ok"
48
	   (format "Tramp 2.2.1-pre is not fit for %s"
49 50
		   (when (string-match "^.*$" (emacs-version))
		     (match-string 0 (emacs-version)))))))
51
  (unless (string-match "\\`ok\\'" x) (error "%s" x)))
52

53 54 55 56
(add-hook 'tramp-unload-hook
	  (lambda ()
	    (unload-feature 'trampver 'force)))

57 58 59
(provide 'trampver)

;;; trampver.el ends here
60 61 62 63 64

;; Local Variables:
;; mode: Emacs-Lisp
;; coding: utf-8
;; End: