summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJambunathan K <kjambunathan@gmail.com>2010-10-05 15:41:09 +0530
committerCarsten Dominik <carsten.dominik@gmail.com>2010-10-08 12:39:51 +0200
commit395098f6f1a69f385c20d4c9ff248456752a3b2e (patch)
treeb4025f0c6f1515f796281d9cf2a3646a6ec8cdbb
parent006ebbcd8094b58da4f01a9531f429e35258086b (diff)
downloadorg-mode-395098f6f1a69f385c20d4c9ff248456752a3b2e.tar.gz
ELPA Howto
Carsten Reworked the changes based on your feedback. Customize to your tastes. Jambunathan K. From 1121461037e0308054afeabf8c67bd1a568dd9b1 Mon Sep 17 00:00:00 2001 From: Jambunathan K <kjambunathan@gmail.com> Date: Tue, 5 Oct 2010 15:33:08 +0530 Subject: [PATCH] Support for elpa-compatible tarballs * Makefile (pkg): New target for creating elpa-compatible tarball.
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1c1f317..3b92534 100644
--- a/Makefile
+++ b/Makefile
@@ -164,6 +164,19 @@ CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
TEXIFILES = doc/org.texi
INFOFILES = doc/org
+# Package Manager (ELPA)
+PKG_TAG = $(shell date +%Y%m%d)
+PKG_DOC = "Outline-based notes management and organizer"
+PKG_REQ = "nil"
+
+PKG_FILES = $(LISPFILES0) \
+ doc/dir doc/org \
+ doc/pdflayout.sty \
+ doc/org.pdf \
+ doc/orgguide.pdf \
+ doc/orgcard.tex \
+ doc/orgcard.pdf \
+ doc/orgcard_letter.pdf
.SUFFIXES: .el .elc .texi
SHELL = /bin/sh
@@ -325,6 +338,17 @@ distfile:
zip -r org-$(TAG).zip org-$(TAG)
gtar zcvf org-$(TAG).tar.gz org-$(TAG)
+pkg:
+ @if [ "X$(PKG_TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
+ touch doc/org.texi doc/orgcard.tex # force update
+ ${MAKE} info
+ ${MAKE} doc
+ rm -rf org-$(PKG_TAG) org-$(PKG_TAG).tar
+ $(MKDIR) org-$(PKG_TAG)
+ cp -r $(PKG_FILES) org-$(PKG_TAG)
+ echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" > org-$(PKG_TAG)/org-pkg.el
+ tar cf org-$(PKG_TAG).tar org-$(PKG_TAG) --remove-files
+
makerelease:
@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
${MAKE} distfile