emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp as ELPA package


From: Stefan Monnier
Subject: Re: Tramp as ELPA package
Date: Sat, 25 Aug 2018 17:04:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> 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], address@hidden)
+# 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, address@hidden)
 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 <address@hidden>
 ;; Maintainer: Michael Albinus <address@hidden>
 ;; Keywords: comm, processes
+;; Version: 2.4.0
 ;; Package: tramp
 
 ;; This file is part of GNU Emacs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]