aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2020-01-23 18:01:00 +0100
committerJonas Bernoulli <jonas@bernoul.li>2020-01-23 18:05:18 +0100
commit14c70a5ac60abd2fc66f6526279d0055f495659f (patch)
tree1141c37bef065af696a00deeb98fe555538d3bda /Makefile
parent9759eb1338e376012f1ea501fe17fe52db92995f (diff)
Distribute magit-section.el as a separate package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c0fa24f..4e32bb8 100644
--- a/Makefile
+++ b/Makefile
@@ -206,6 +206,13 @@ define set_package_requires
`((emacs "$(LIBGIT_EMACS_VERSION)") ;`
(magit "$(LIBGIT_MAGIT_VERSION)")
(libgit ,libgit-version)))))
+(with-temp-file "lisp/magit-section.el"
+ (insert-file-contents "lisp/magit-section.el")
+ (re-search-forward "^;; Package-Requires: ")
+ (delete-region (point) (line-end-position))
+ (insert (format "%S"
+`((emacs ,emacs-version) ;`
+ (dash ,dash-version)))))
(with-temp-file "lisp/magit-pkg.el"
(insert (pp-to-string
`(define-package "magit" "$(VERSION)" ;`
@@ -214,6 +221,7 @@ define set_package_requires
(async ,async-version)
(dash ,dash-version)
(git-commit ,git-commit-version)
+ (magit-section ,magit-section-version)
(transient ,transient-version)
(with-editor ,with-editor-version))
:keywords '("git" "tools" "vc")))) ;'
@@ -232,6 +240,7 @@ bump-versions-1:
(dash-version \"$(DASH_VERSION)\")\
(git-commit-version \"$(GIT_COMMIT_VERSION)\")\
(libgit-version \"$(LIBGIT_VERSION)\")\
+ (magit-section-version \"$(MAGIT_SECTION_VERSION)\")\
(transient-version \"$(TRANSIENT_VERSION)\")\
(with-editor-version \"$(WITH_EDITOR_VERSION)\"))\
$$set_package_requires)"
@@ -243,6 +252,7 @@ bump-snapshots:
(dash-version \"$(DASH_MELPA_SNAPSHOT)\")\
(git-commit-version \"$(GIT_COMMIT_MELPA_SNAPSHOT)\")\
(libgit-version \"$(LIBGIT_MELPA_SNAPSHOT)\")\
+ (magit-section-version \"$(MAGIT_SECTION_SNAPSHOT)\")\
(transient-version \"$(TRANSIENT_MELPA_SNAPSHOT)\")\
(with-editor-version \"$(WITH_EDITOR_MELPA_SNAPSHOT)\"))\
$$set_package_requires)"