This patch adds the needed code to prepare magit for upload to ELPA.
If you don't know about ELPA, it is a simple package installer for
Emacs. More info is here:
http://tromey.com/elpa/
I'd like to upload magit to ELPA, but ordinarily I only do this with
some (minimal) cooperation from the maintainers. In magit's case, I
think the best thing for me would be if you could add "make elpa" to
your release process, and email the resulting tar to the elpa address
([email protected]). Alternatively, sending a release announcement
there would be ok too.
thanks,
Tom
diff --git a/Makefile.am b/Makefile.am
index dc46aa1..d730829 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); install-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..3f8451f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,6 +2,6 @@ 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.")
diff --git a/magit.el b/magit.el
index 314cc77..200c748 100644
--- a/magit.el
+++ b/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))
--~--~---------~--~----~------------~-------~--~----~
--
http://groups.google.com/group/magit
-~----------~----~----~----~------~----~------~--~---