branch: elpa/vcomplete commit a64c37e78011e0c5bb52085ae69e1e150550500d Author: Daniel Semyonov <dan...@dsemy.com> Commit: Daniel Semyonov <dan...@dsemy.com>
; Generate 'vcomplete-pkg.el' automatically --- .gitignore | 1 + Makefile | 19 +++++++++++++++++-- vcomplete-pkg.el | 9 --------- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 4572254de0..ac9efc5756 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ dir *.tar vcomplete +vcomplete-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/vcomplete-pkg.el b/vcomplete-pkg.el deleted file mode 100644 index a6af524bb3..0000000000 --- a/vcomplete-pkg.el +++ /dev/null @@ -1,9 +0,0 @@ -(define-package "vcomplete" "1.2" "Visual completions" - '((emacs "25.1")) - :keywords ("convenience" "matching") - :authors (("Daniel Semyonov" . "dan...@dsemy.com")) - :maintainer ("Daniel Semyonov" . "dan...@dsemy.com") - :url "https://dsemy.com/projects/vcomplete") -;; Local Variables: -;; no-byte-compile: t -;; end: