diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2015-06-23 19:17:00 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2015-06-23 19:17:00 +0200 |
| commit | a2f8a414eadb43f9f445f9dbf96082832a7582cf (patch) | |
| tree | 8bff583aefa19662dd1e87052bed0a3139f86877 | |
| parent | 9a0f05c71c5cf966dc92ebbf7e75b49dd1799cfd (diff) | |
make: create four elpa packages
In addition to the magit elpa package, create three separate
elpa packages for with-editor, git-commit, and magit-popup.
| -rw-r--r-- | .gitignore | 7 | ||||
| -rw-r--r-- | Documentation/Makefile | 4 | ||||
| -rw-r--r-- | Makefile | 84 | ||||
| -rw-r--r-- | default.mk | 9 | ||||
| -rw-r--r-- | magit-pkg.el | 4 |
5 files changed, 87 insertions, 21 deletions
@@ -1,10 +1,11 @@ *.elc *~ +/*.gz +/*.tar +/*.tar.gz /.dir-locals.el -/Documentation/dir /Documentation/*.info +/Documentation/dir /config.mk -/magit-*.tar -/magit-*.tar.gz /lisp/magit-autoloads.el /lisp/magit-version.el diff --git a/Documentation/Makefile b/Documentation/Makefile index 090e7e4..1c6164d 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -71,6 +71,10 @@ define AUTHORS_HEADER Authors ======= +The following people have contributed to Magit, including the +libraries \`git-commit.el\`, \`magit-popup.el\`, and \`with-editor.el\` +which are distributed as separate Elpa packages. + For statistics see http://magit.vc/stats/authors.html. Names below are sorted alphabetically. @@ -6,7 +6,7 @@ include default.mk test test-interactive \ clean clean-lisp clean-docs \ genstats \ - dist magit-$(VERSION).tar.gz elpa magit-$(VERSION).tar + dist magit-$(VERSION).tar.gz elpa $(ELPA_ARCHIVES) all: lisp docs @@ -83,7 +83,7 @@ test-interactive: clean: clean-lisp clean-docs @$(RM) $(ELCS) $(ELGS) # temporary cleanup kludge - @$(RM) *.tar.gz *.tar Documentation/*.texi~ + @$(RM) *.gz *.tar.gz *.tar Documentation/*.texi~ @$(RMDIR) magit-$(VERSION) clean-lisp: @@ -110,7 +110,7 @@ ifneq ("$(wildcard RelNotes/$(VERSION).txt)","") DIST_DOCS_FILES += RelNotes/$(VERSION).txt endif -magit-$(VERSION).tar.gz: +magit-$(VERSION).tar.gz: lisp info @printf "Packing $@\n" @$(MKDIR) magit-$(VERSION) @$(CP) $(DIST_ROOT_FILES) magit-$(VERSION) @@ -122,18 +122,82 @@ magit-$(VERSION).tar.gz: @$(RMDIR) magit-$(VERSION) marmalade: elpa + @printf "Uploading with-editor-$(VERSION)\n" + @marmalade-upload with-editor-$(VERSION).tar + @printf "Uploading git-commit-$(VERSION)\n" + @marmalade-upload git-commit-$(VERSION).tar + @printf "Uploading magit-popup-$(VERSION)\n" + @marmalade-upload magit-popup-$(VERSION).tar @printf "Uploading magit-$(VERSION)\n" @marmalade-upload magit-$(VERSION).tar -elpa: magit-$(VERSION).tar - -ELPA_ROOT_FILES = COPYING README.md magit-pkg.el -ELPA_LISP_FILES = $(addprefix lisp/,$(ELS) magit-version.el) -ELPA_DOCS_FILES = $(addprefix Documentation/,$(INFOPAGES) AUTHORS.md dir) - -magit-$(VERSION).tar: info +ELPA_ARCHIVES = with-editor-$(VERSION).tar +ELPA_ARCHIVES += git-commit-$(VERSION).el.gz +ELPA_ARCHIVES += magit-popup-$(VERSION).tar +ELPA_ARCHIVES += magit-$(VERSION).tar + +elpa: $(ELPA_ARCHIVES) + +define with_editor_pkg +(define-package "with-editor" "$(VERSION)" + "Use the Emacsclient as $$EDITOR" + '((emacs \"24.4\") + (dash \"2.10.0\"))) +endef +# ' +export with_editor_pkg +with-editor-$(VERSION).tar: info + @printf "Packing $@\n" + @$(MKDIR) with-editor-$(VERSION) + @printf "$$with_editor_pkg\n" > with-editor-$(VERSION)/with-editor-pkg.el + @$(CP) lisp/with-editor.el with-editor-$(VERSION) + @$(CP) Documentation/with-editor.info Documentation/dir with-editor-$(VERSION) + @$(TAR) c --mtime=./with-editor-$(VERSION) \ + -f with-editor-$(VERSION).tar with-editor-$(VERSION) + @$(RMDIR) with-editor-$(VERSION) + +git-commit-$(VERSION).el.gz: + @printf "Packing $@\n" + @$(CP) lisp/git-commit.el git-commit-$(VERSION).el + @$(GZIP) git-commit-$(VERSION).el + +define magit_popup_pkg +(define-package "magit-popup" "$(VERSION)" + "Define prefix-infix-suffix command combos" + '((emacs \"24.4\") + (dash \"2.10.0\"))) +endef +# ' +export magit_popup_pkg +magit-popup-$(VERSION).tar: info + @printf "Packing $@\n" + @$(MKDIR) magit-popup-$(VERSION) + @printf "$$magit_popup_pkg\n" > magit-popup-$(VERSION)/magit-popup-pkg.el + @$(CP) lisp/magit-popup.el magit-popup-$(VERSION) + @$(CP) Documentation/magit-popup.info Documentation/dir magit-popup-$(VERSION) + @$(TAR) c --mtime=./magit-popup-$(VERSION) \ + -f magit-popup-$(VERSION).tar magit-popup-$(VERSION) + @$(RMDIR) magit-popup-$(VERSION) + +ELPA_ROOT_FILES = COPYING README.md +ELPA_LISP_FILES = $(addprefix lisp/,$(ELMS) magit-version.el) +ELPA_DOCS_FILES = $(addprefix Documentation/,AUTHORS.md dir magit.info) + +define magit_pkg +(define-package "magit" "$(VERSION)" + "A Git porcelain inside Emacs" + '((emacs \"24.4\") + (dash \"2.10.0\") + (with-editor \"2.0.50\") + (git-commit \"2.0.50\") + (magit-popup \"2.0.50\"))) +endef +# ' +export magit_pkg +magit-$(VERSION).tar: lisp info @printf "Packing $@\n" @$(MKDIR) magit-$(VERSION) + @printf "$$magit_pkg\n" > magit-$(VERSION)/magit-pkg.el @$(CP) $(ELPA_ROOT_FILES) magit-$(VERSION) @$(CP) $(ELPA_LISP_FILES) magit-$(VERSION) @$(CP) $(ELPA_DOCS_FILES) magit-$(VERSION) @@ -11,13 +11,13 @@ CP ?= install -p -m 644 MKDIR ?= install -p -m 755 -d RMDIR ?= rm -rf TAR ?= tar +GZIP ?= gzip -PACKAGES = magit magit-popup with-editor +PACKAGES = with-editor git-commit magit-popup magit PACKAGE_VERSIONS = $(addsuffix -$(VERSION),$(PACKAGES)) -PACKAGE_TARBALLS = $(addsuffix .tar,$(PACKAGE_VERSIONS)) -INFOPAGES = $(addsuffix .info,$(PACKAGES)) -TEXIPAGES = $(addsuffix .texi,$(PACKAGES)) +INFOPAGES = $(addsuffix .info,$(filter-out git-commit,$(PACKAGES))) +TEXIPAGES = $(addsuffix .texi,$(filter-out git-commit,$(PACKAGES))) ELS = with-editor.el ELS += git-commit.el @@ -43,6 +43,7 @@ ELS += magit-ediff.el ELS += magit-extras.el ELS += git-rebase.el ELCS = $(ELS:.el=.elc) +ELMS = $(filter-out $(addsuffix .el,$(PACKAGES)),$(ELS)) ELGS = magit-autoloads.el magit-version.el EMACSBIN ?= emacs diff --git a/magit-pkg.el b/magit-pkg.el deleted file mode 100644 index 022f11e..0000000 --- a/magit-pkg.el +++ /dev/null @@ -1,4 +0,0 @@ -(define-package "magit" "2.0.50" - "Control Git from Emacs" - '((emacs "24.4") - (dash "2.10.0"))) |
