Skip to content

Commit

Permalink
Elpanized.
Browse files Browse the repository at this point in the history
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
mvollmer committed Mar 9, 2009
1 parent abd643c commit 417dd46
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -34,3 +34,4 @@
/magit.vr
/magit.pdf
/magit.ps
/magit-pkg.el
9 changes: 9 additions & 0 deletions Makefile.am
Expand Up @@ -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)
3 changes: 2 additions & 1 deletion configure.ac
Expand Up @@ -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
1 change: 1 addition & 0 deletions magit-pkg.el.in
@@ -0,0 +1 @@
(define-package "magit" "@VERSION@" "Control Git from Emacs.")
1 change: 1 addition & 0 deletions magit.el
Expand Up @@ -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))
Expand Down

0 comments on commit 417dd46

Please sign in to comment.