From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id D10C86DE0C64 for ; Wed, 16 Nov 2016 09:36:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.529 X-Spam-Level: X-Spam-Status: No, score=0.529 tagged_above=-999 required=5 tests=[AWL=-0.123, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mzdAnL6ZUS6E for ; Wed, 16 Nov 2016 09:36:31 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id E66F16DE0C3A for ; Wed, 16 Nov 2016 09:36:30 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 4E47F1000CA; Wed, 16 Nov 2016 19:37:15 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH 1/3] emacs: generate notmuch-pkg.el In-Reply-To: <20161111114652.29474-2-david@tethera.net> References: <20161111114652.29474-1-david@tethera.net> <20161111114652.29474-2-david@tethera.net> User-Agent: Notmuch/0.23.1+52~ga6dbf3a (https://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2016 17:36:31 -0000 On Fri, Nov 11 2016, David Bremner wrote: > This file contains metadata for the built in (as of emacs 24) packaging > system. Series LGTM. Tomi > --- > Makefile.local | 3 +++ > emacs/.gitignore | 1 + > emacs/Makefile.local | 8 +++++++- > emacs/notmuch-pkg.el.tmpl | 6 ++++++ > 4 files changed, 17 insertions(+), 1 deletion(-) > create mode 100644 emacs/notmuch-pkg.el.tmpl > > diff --git a/Makefile.local b/Makefile.local > index d1b0585..0a122ab 100644 > --- a/Makefile.local > +++ b/Makefile.local > @@ -19,9 +19,12 @@ DATE:=$(shell date +%F) > endif > > VERSION:=$(shell cat ${srcdir}/version) > +ELPA_VERSION:=$(subst ~,_,$(VERSION)) > ifeq ($(filter release release-message pre-release update-versions,$(MAKECMDGOALS)),) > ifeq ($(IS_GIT),yes) > VERSION:=$(shell git --git-dir=${srcdir}/.git describe --abbrev=7 --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/) > +# drop the ~g$sha1 part > +ELPA_VERSION:=$(word 1,$(subst ~, ,$(VERSION))) > # Write the file 'version.stamp' in case its contents differ from $(VERSION) > FILE_VERSION:=$(shell test -f version.stamp && read vs < version.stamp || vs=; echo $$vs) > ifneq ($(FILE_VERSION),$(VERSION)) > diff --git a/emacs/.gitignore b/emacs/.gitignore > index 9fa1c44..8e15eed 100644 > --- a/emacs/.gitignore > +++ b/emacs/.gitignore > @@ -1,3 +1,4 @@ > .eldeps* > *.elc > notmuch-version.el > +notmuch-pkg.el > diff --git a/emacs/Makefile.local b/emacs/Makefile.local > index 2d6aedb..e4f7a04 100644 > --- a/emacs/Makefile.local > +++ b/emacs/Makefile.local > @@ -27,6 +27,12 @@ $(dir)/notmuch-version.el: $(srcdir)/$(dir)/notmuch-version.el.tmpl > @sed -e 's/%AG%/Generated file (from $( -e 's/%VERSION%/"$(VERSION)"/' $< > $@ > > +$(dir)/notmuch-pkg.el: $(srcdir)/$(dir)/notmuch-pkg.el.tmpl > + @sed -e 's/%AG%/Generated file (from $( + -e 's/%VERSION%/"$(ELPA_VERSION)"/' $< > $@ > + > +all: $(dir)/notmuch-pkg.el > +install-emacs: $(dir)/notmuch-pkg.el > > emacs_images := \ > $(srcdir)/$(dir)/notmuch-logo.png > @@ -84,4 +90,4 @@ endif > mkdir -p "$(DESTDIR)$(emacsetcdir)" > install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)" > > -CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el > +CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el $(dir)/notmuch-pkg.el > diff --git a/emacs/notmuch-pkg.el.tmpl b/emacs/notmuch-pkg.el.tmpl > new file mode 100644 > index 0000000..de97baa > --- /dev/null > +++ b/emacs/notmuch-pkg.el.tmpl > @@ -0,0 +1,6 @@ > +;; %AG% > +(define-package > + "notmuch" > + %VERSION% > + "Emacs based front-end (MUA) for notmuch" > + nil) > -- > 2.10.2 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch