Prefer HTTPS to FTP and HTTP in documentation
[emacs.git] / lisp / net / trampver.el
blob91222bd781764d3156f43469e0e4884ab99764f6
1 ;;; trampver.el --- Transparent Remote Access, Multiple Protocol -*- lexical-binding:t -*-
2 ;;; lisp/trampver.el. Generated from trampver.el.in by configure.
4 ;; Copyright (C) 2003-2017 Free Software Foundation, Inc.
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
12 ;; This file is part of GNU Emacs.
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.
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.
24 ;; You should have received a copy of the GNU General Public License
25 ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
27 ;;; Code:
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.
35 ;;;###tramp-autoload
36 (defconst tramp-version "2.3.3-pre"
37 "This version of Tramp.")
39 ;;;###tramp-autoload
40 (defconst tramp-bug-report-address "tramp-devel@gnu.org"
41 "Email address to send bug reports to.")
43 (defun tramp-repository-get-version ()
44 "Try to return as a string the repository revision of the Tramp sources."
45 (let ((dir (locate-dominating-file (locate-library "tramp") ".git")))
46 (when dir
47 (with-temp-buffer
48 (let ((default-directory (file-name-as-directory dir)))
49 (and (zerop
50 (ignore-errors
51 (call-process "git" nil '(t nil) nil "rev-parse" "HEAD")))
52 (not (zerop (buffer-size)))
53 (replace-regexp-in-string "\n" "" (buffer-string))))))))
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)))
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 ("2.2.13.25.2" . "25.3")))
74 (add-hook 'tramp-unload-hook
75 (lambda ()
76 (unload-feature 'trampver 'force)))
78 (provide 'trampver)
80 ;;; trampver.el ends here
82 ;; Local Variables:
83 ;; mode: Emacs-Lisp
84 ;; coding: utf-8
85 ;; End: