Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 417dd46093077a5d754dae87bd1cd377bb724aa2 1 parent abd643c
@mvollmer mvollmer authored
View
1  .gitignore
@@ -34,3 +34,4 @@
/magit.vr
/magit.pdf
/magit.ps
+/magit-pkg.el
View
9 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)
View
3  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
View
1  magit-pkg.el.in
@@ -0,0 +1 @@
+(define-package "magit" "@VERSION@" "Control Git from Emacs.")
View
1  magit.el
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.