emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/swsw 8b8c353938 143/146: ; Generate swsw-pkg.el' automatic


From: ELPA Syncer
Subject: [nongnu] elpa/swsw 8b8c353938 143/146: ; Generate swsw-pkg.el' automatically
Date: Wed, 25 May 2022 02:59:57 -0400 (EDT)

branch: elpa/swsw
commit 8b8c35393876499cc508c3593b85eab3d919f4fb
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>

    ; Generate swsw-pkg.el' automatically
---
 .gitignore  |  1 +
 Makefile    | 19 +++++++++++++++++--
 swsw-pkg.el |  9 ---------
 3 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/.gitignore b/.gitignore
index 497a4f8ee4..41fe4ae967 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,5 @@
 dir
 *.tar
 swsw
+swsw-pkg.el
 *~
diff --git a/Makefile b/Makefile
index a8728245c5..db4664339e 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,22 @@ dir: $(PKG).info
 
 info: $(PKG).info dir
 
-$(PKG)-$(VERSION).tar: $(PKG).info dir *.el LICENSE
+$(PKG)-pkg.el: $(PKG).el
+       sed -n -e 's/.* --- /(define-package "$(PKG)" "$(VERSION)" "/' \
+           -e 's/ -\*- lexical-binding: t -\*-/"/p' \
+           -e "s/;; Package-Requires: /  '/p" \
+           -e 's/, /" "/' -e 's/;; Keywords: /  :keywords ("/p' $? \
+           | sed '$$s/$$/")/' > $@
+       sed -n -e 's/ </" . "/' -e 's/>/"))/' \
+           -e 's/;; Author: /  :authors (("/p' $? \
+           >> $@
+       sed -n -e 's/ </" . "/' -e 's/>/")/' \
+           -e 's/;; Maintainer: /  :maintainer ("/p' \
+           -e 's/;; URL: /  :url "/p' $? \
+           | sed '$$s/$$/")\n;; Local Variables:\n;; no-byte-compile: t\n;; 
end:/' \
+           >> $@
+
+$(PKG)-$(VERSION).tar: $(PKG).info dir $(PKG)-pkg.el *.el LICENSE
        mkdir $(PKG)-$(VERSION)
        cp -a $? $(PKG)-$(VERSION)/
        $(TAR) -cf $@ $(PKG)-$(VERSION)
@@ -29,4 +44,4 @@ $(PKG)-$(VERSION).tar: $(PKG).info dir *.el LICENSE
 package: $(PKG)-$(VERSION).tar
 
 clean:
-       rm -f $(PKG).info dir $(PKG)-$(VERSION).tar
+       rm -f $(PKG).info dir $(PKG)-pkg.el $(PKG)-$(VERSION).tar
diff --git a/swsw-pkg.el b/swsw-pkg.el
deleted file mode 100644
index f2f319e152..0000000000
--- a/swsw-pkg.el
+++ /dev/null
@@ -1,9 +0,0 @@
-(define-package "swsw" "2.1" "Simple window switching"
-  '((emacs "25.1"))
-  :keywords ("convenience")
-  :authors (("Daniel Semyonov" . "daniel@dsemy.com"))
-  :maintainer ("Daniel Semyonov" . "daniel@dsemy.com")
-  :url "https://dsemy.com/projects/swsw";)
-;; Local Variables:
-;; no-byte-compile: t
-;; end:



reply via email to

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