From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tramp as ELPA package Date: Sat, 25 Aug 2018 17:04:54 -0400 Message-ID: References: <20180819204918.GA3934@ACM> <20180821162043.GA3946@ACM> <20180823213418.GA32596@ACM> <83lg8w9mt2.fsf@gnu.org> <871saoc70o.fsf@gmx.de> <87wosebzur.fsf_-_@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535231068 25248 195.159.176.226 (25 Aug 2018 21:04:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2018 21:04:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 25 23:04:24 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftfjM-0006Qo-4a for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2018 23:04:24 +0200 Original-Received: from localhost ([::1]:47052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftflS-0006P7-58 for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2018 17:06:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftfkv-0006Cu-BG for emacs-devel@gnu.org; Sat, 25 Aug 2018 17:06:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftfk0-0007Uf-1v for emacs-devel@gnu.org; Sat, 25 Aug 2018 17:05:04 -0400 Original-Received: from pmta31.teksavvy.com ([76.10.157.38]:58386) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1ftfju-0007QZ-JN; Sat, 25 Aug 2018 17:04:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GZEgA3w4Fb/8jjSC1aHQEBBQELAYNPJ?= =?us-ascii?q?EFtEiiIH5AFgg0TlhOBegsbE4Q+AoMRITYWAQIBAQEBAQECAgJpHAyDM2oBAQE?= =?us-ascii?q?BAQEBAQEBAQEBAQEBAQEBFjU+AQQBeQULCw0nEhQYMRODIoFpAw0IozIaAopCi?= =?us-ascii?q?VYXggCBEoMSglaIAAKSW4hRCYYzgngFhlaCB4YwIgOFa5BLgn2BSA4kgVIzGgg?= =?us-ascii?q?wgyQJg2mMfSMwjwQBAQ?= X-IPAS-Result: =?us-ascii?q?A2GZEgA3w4Fb/8jjSC1aHQEBBQELAYNPJEFtEiiIH5AFgg0?= =?us-ascii?q?TlhOBegsbE4Q+AoMRITYWAQIBAQEBAQECAgJpHAyDM2oBAQEBAQEBAQEBAQEBA?= =?us-ascii?q?QEBAQEBFjU+AQQBeQULCw0nEhQYMRODIoFpAw0IozIaAopCiVYXggCBEoMSgla?= =?us-ascii?q?IAAKSW4hRCYYzgngFhlaCB4YwIgOFa5BLgn2BSA4kgVIzGggwgyQJg2mMfSMwj?= =?us-ascii?q?wQBAQ?= X-IronPort-AV: E=Sophos;i="5.53,288,1531800000"; d="scan'208";a="44099671" Original-Received: from unknown (HELO fmsmemgm.homelinux.net) ([45.72.227.200]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Aug 2018 17:04:54 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 0D410AE23E; Sat, 25 Aug 2018 17:04:54 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Sat, 25 Aug 2018 14:04:36 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.38 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228913 Archived-At: > If the single place were in tramp.el instead of configure.ac you > wouldn't need tramp.el to be generated either. See patch below for an example. Stefan diff --git a/configure.ac b/configure.ac index 4fd0e0d0..f1f033cd 100644 --- a/configure.ac +++ b/configure.ac @@ -24,9 +24,12 @@ # incompatible changes (with quotation) have appeared since 2.50. AC_PREREQ([2.50]) -# Initialize configure script. This is the only point Tramp revision +# Initialize configure script. The only place where Tramp's version +# is kept is in lisp/tramp.el's "Version:" header. # needs to be set. -AC_INIT([Tramp], [2.4.0], [tramp-devel@gnu.org]) +# NOTE: the main purpose of the `regexp` call is to strip the final LF. +define([TRAMP_VERSION], regexp(esyscmd([sed -n -e 's/^;; Version: *//p' lisp/tramp.el]), [[-a-z0-9.]*], [\&])) +AC_INIT([Tramp], TRAMP_VERSION, [tramp-devel@gnu.org]) AC_MSG_NOTICE([$PACKAGE_STRING]) # Check suitable make version. diff --git a/lisp/tramp.el b/lisp/tramp.el index 5429cdf7..756468c3 100644 --- a/lisp/tramp.el +++ b/lisp/tramp.el @@ -6,6 +6,7 @@ ;; Michael Albinus ;; Maintainer: Michael Albinus ;; Keywords: comm, processes +;; Version: 2.4.0 ;; Package: tramp ;; This file is part of GNU Emacs.