branch: externals/tramp
commit f1acc4a30d2b82a308bee1a6f440f862be294f7e
Author: Michael Albinus <michael.albi...@gmx.de>
Commit: Michael Albinus <michael.albi...@gmx.de>

    Generate package information in tramp.el
    
    * Makefile (VERSION, REQUIRE, SCRIPTV, SCRIPTP): New variables.
    (sync): Don't copy tramp.el.  Instead, modify it with proper
    Version and Package-Requires keywords.
    
    * tramp.el: Add Version, Package-Requires, Package-Type and URL
    keywords.
---
 Makefile | 7 ++++++-
 tramp.el | 4 ++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 99ecd2dfb8..7520545d13 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,11 @@ SOURCE_DIR   = ~/src/tramp
 
 .SUFFIXES: .el
 
+VERSION        = $(shell sed -n -e 's/^;; Version: *//p' 
$(SOURCE_DIR)/lisp/trampver.el)
+REQUIRE        = $(shell sed -n -e 's/^;; Package-Requires: *//p' 
$(SOURCE_DIR)/lisp/trampver.el)
+SCRIPTV = s/Version: 0/Version: $(VERSION)/g
+SCRIPTP = s/Package-Requires: ()/Package-Requires: $(REQUIRE)/g
+
 all: sync autoloads info
 
 autoloads: $(LISP_FILES)
@@ -69,7 +74,7 @@ sync:
        cp -p $(SOURCE_DIR)/lisp/tramp-sshfs.el tramp-sshfs.el
        cp -p $(SOURCE_DIR)/lisp/tramp-sudoedit.el tramp-sudoedit.el
        cp -p $(SOURCE_DIR)/lisp/tramp-uu.el tramp-uu.el
-       cp -p $(SOURCE_DIR)/lisp/tramp.el tramp.el
        cp -p $(SOURCE_DIR)/lisp/trampver.el trampver.el
+       sed -e "$(SCRIPTV)" -e "$(SCRIPTP)" $(SOURCE_DIR)/lisp/tramp.el > 
tramp.el
        $(MAKE) -C texi sync
        $(MAKE) -C test sync
diff --git a/tramp.el b/tramp.el
index 0e2ad5c124..f34bb80dc6 100644
--- a/tramp.el
+++ b/tramp.el
@@ -7,6 +7,10 @@
 ;; Maintainer: Michael Albinus <michael.albi...@gmx.de>
 ;; Keywords: comm, processes
 ;; Package: tramp
+;; Version: 2.7.2.2
+;; Package-Requires: ((emacs 27.1))
+;; Package-Type: multi
+;; URL: https://www.gnu.org/software/tramp/
 
 ;; This is a GNU ELPA :core package.  Avoid functionality that is not
 ;; compatible with the version of Emacs recorded in trampver.el.

Reply via email to