Skip to content

Commit

Permalink
evil-pkg.el: Remove file
Browse files Browse the repository at this point in the history
This file is auto-generated from headers in `evil.el` anyway.

* evil.el: Synchronize metadata with what was in `evil-pkg.el`.
* .gitignore: Add `evil-pkg.el`.
* Makefile (VERSION): Fetch the info from `evil.el`.
(elpa-pkg.el): New rule to (re)generate the file.
(elpa): Use it (not sure if EASK needs it, tho).
  • Loading branch information
monnier authored and axelf4 committed Sep 15, 2024
1 parent 5db0bdc commit 1b49c15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*.pg
*.tp
.depend
evil-autoloads.el
/evil-autoloads.el
/evil-pkg.el
test-results.txt
typescript

Expand Down
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
SHELL = /bin/sh
EMACS ?= emacs
SED ?= sed
FILES = $(filter-out evil-test-helpers.el evil-tests.el evil-pkg.el,$(wildcard evil*.el))
VERSION := $(shell $(SED) -ne '/define-package/,$$p' evil-pkg.el | $(SED) -ne '/^\s*"[[:digit:]]\+\(\.[[:digit:]]\+\)*"\s*$$/ s/^.*"\(.*\)".*$$/\1/p')
VERSION := $(shell $(SED) -n '/^;\+ \+Version: *\(.*\)/{s//\1/p;q}' evil.el)
PROFILER =
DOC = doc
TAG =
EASK ?= eask

Expand Down Expand Up @@ -52,8 +50,7 @@ emacs:
--eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}) t)"

# Load Evil in a terminal Emacs and run all tests.
term: terminal
terminal:
term terminal:
$(EASK) run command terminal

# Run all tests with profiler.
Expand All @@ -66,8 +63,12 @@ profiler:
indent: clean
$(EASK) run command indent

evil-pkg.el: evil.el
$(EMACS) --batch -l package $^ \
--eval "(package-generate-description-file (package-buffer-info) \"$@\")"

# Create an ELPA package.
elpa:
elpa: evil-pkg.el
$(EASK) package

# Change the version using make VERSION=x.y.z
Expand Down
9 changes: 0 additions & 9 deletions evil-pkg.el

This file was deleted.

0 comments on commit 1b49c15

Please sign in to comment.