Line data Source code
1 : ;;; trampver.el --- Transparent Remote Access, Multiple Protocol -*- lexical-binding:t -*-
2 : ;;; lisp/trampver.el. Generated from trampver.el.in by configure.
3 :
4 : ;; Copyright (C) 2003-2017 Free Software Foundation, Inc.
5 :
6 : ;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
7 : ;; Maintainer: Michael Albinus <michael.albinus@gmx.de>
8 : ;; Keywords: comm, processes
9 : ;; Package: tramp
10 : ;; Version: 2.3.3-pre
11 :
12 : ;; This file is part of GNU Emacs.
13 :
14 : ;; GNU Emacs is free software: you can redistribute it and/or modify
15 : ;; it under the terms of the GNU General Public License as published by
16 : ;; the Free Software Foundation, either version 3 of the License, or
17 : ;; (at your option) any later version.
18 :
19 : ;; GNU Emacs is distributed in the hope that it will be useful,
20 : ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21 : ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 : ;; GNU General Public License for more details.
23 :
24 : ;; You should have received a copy of the GNU General Public License
25 : ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26 :
27 : ;;; Code:
28 :
29 : ;; In the Tramp GIT repository, the version number and the bug report
30 : ;; address are auto-frobbed from configure.ac, so you should edit that
31 : ;; file and run "autoconf && ./configure" to change them. Emacs
32 : ;; version check is defined in macro AC_EMACS_INFO of aclocal.m4;
33 : ;; should be changed only there.
34 :
35 : ;;;###tramp-autoload
36 : (defconst tramp-version "2.3.3-pre"
37 : "This version of Tramp.")
38 :
39 : ;;;###tramp-autoload
40 : (defconst tramp-bug-report-address "tramp-devel@gnu.org"
41 : "Email address to send bug reports to.")
42 :
43 : (defun tramp-repository-get-version ()
44 : "Try to return as a string the repository revision of the Tramp sources."
45 0 : (let ((dir (locate-dominating-file (locate-library "tramp") ".git")))
46 0 : (when dir
47 0 : (with-temp-buffer
48 0 : (let ((default-directory (file-name-as-directory dir)))
49 0 : (and (zerop
50 0 : (ignore-errors
51 0 : (call-process "git" nil '(t nil) nil "rev-parse" "HEAD")))
52 0 : (not (zerop (buffer-size)))
53 0 : (replace-regexp-in-string "\n" "" (buffer-string))))))))
54 :
55 : ;; Check for Emacs version.
56 : (let ((x (if (>= emacs-major-version 24)
57 : "ok"
58 : (format "Tramp 2.3.3-pre is not fit for %s"
59 : (when (string-match "^.*$" (emacs-version))
60 : (match-string 0 (emacs-version)))))))
61 : (unless (string-match "\\`ok\\'" x) (error "%s" x)))
62 :
63 : ;; Tramp versions integrated into Emacs.
64 : (add-to-list
65 : 'customize-package-emacs-version-alist
66 : '(Tramp ("2.0.55" . "22.1") ("2.0.57" . "22.2") ("2.0.58-pre" . "22.3")
67 : ("2.1.15" . "23.1") ("2.1.18-23.2" . "23.2")
68 : ("2.1.20" . "23.3") ("2.1.21-pre" . "23.4")
69 : ("2.2.3-24.1" . "24.1") ("2.2.3-24.1" . "24.2") ("2.2.6-24.3" . "24.3")
70 : ("2.2.9-24.4" . "24.4") ("2.2.11-24.5" . "24.5")
71 : ("2.2.13.25.1" . "25.1") ("2.2.13.25.2" . "25.2")))
72 :
73 : (add-hook 'tramp-unload-hook
74 : (lambda ()
75 : (unload-feature 'trampver 'force)))
76 :
77 : (provide 'trampver)
78 :
79 : ;;; trampver.el ends here
80 :
81 : ;; Local Variables:
82 : ;; mode: Emacs-Lisp
83 : ;; coding: utf-8
84 : ;; End:
|