diff options
| author | Marius Vollmer <marius.vollmer@gmail.com> | 2009-03-09 21:59:38 +0200 |
|---|---|---|
| committer | Marius Vollmer <marius.vollmer@gmail.com> | 2009-03-09 22:15:07 +0200 |
| commit | 417dd46093077a5d754dae87bd1cd377bb724aa2 (patch) | |
| tree | 7b99bade1dd2ef8e579e8a1ab507eb87afdc7ef6 | |
| parent | abd643c681fd3352a84745c9614d778a79e1363f (diff) | |
Elpanized.
From Tom Tromey. Thanks!
* Makefile.am (elpa): New target to create elpa tarball.
* magit-pkg.el.in: New.
* configure.ac: Create magit-pkg.el from it.
* magit.el: Added autoload for magit-status.
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile.am | 9 | ||||
| -rw-r--r-- | configure.ac | 3 | ||||
| -rw-r--r-- | magit-pkg.el.in | 1 | ||||
| -rw-r--r-- | magit.el | 1 |
5 files changed, 14 insertions, 1 deletions
@@ -34,3 +34,4 @@ /magit.vr /magit.pdf /magit.ps +/magit-pkg.el diff --git a/Makefile.am b/Makefile.am index dc46aa1..8ae4192 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,3 +13,12 @@ EXTRA_DIST = magit.el 50magit.el @if [ $(builddir) != $(srcdir) ]; then ln $(srcdir)/$*.el .; fi emacs --batch --eval '(byte-compile-file "$*.el")' @if [ $(builddir) != $(srcdir) ]; then rm -f $*.el; fi + + +elpa: magit-pkg.el info + -@rm -rf magit-$(VERSION) + mkdir magit-$(VERSION) + cp magit.el magit-pkg.el magit.info magit-$(VERSION) + (cd magit-$(VERSION); ginstall-info --dir-file=dir magit.info) + tar cf magit-$(VERSION).tar magit-$(VERSION) + @rm -rf magit-$(VERSION) diff --git a/configure.ac b/configure.ac index d491c2e..da592b9 100644 --- a/configure.ac +++ b/configure.ac @@ -2,6 +2,7 @@ AC_INIT(magit, 0.8) AC_CONFIG_SRCDIR([magit.el]) AM_INIT_AUTOMAKE -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile + magit-pkg.el]) AC_OUTPUT diff --git a/magit-pkg.el.in b/magit-pkg.el.in new file mode 100644 index 0000000..59335e5 --- /dev/null +++ b/magit-pkg.el.in @@ -0,0 +1 @@ +(define-package "magit" "@VERSION@" "Control Git from Emacs.") @@ -1846,6 +1846,7 @@ in log buffer." (let ((default-directory dir)) (magit-run* (list "git" "init")))))) +;;;###autoload (defun magit-status (dir) (interactive (list (or (and (not current-prefix-arg) (magit-get-top-dir default-directory)) |
