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.
This commit is contained in:
parent
006ebbcd80
commit
395098f6f1
24
Makefile
24
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
|
||||
|
|
Loading…
Reference in New Issue