all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: -DVERSION for emacsclient
Date: Sat, 25 Nov 2006 00:55:36 +0100	[thread overview]
Message-ID: <f7ccd24b0611241555l4e61626ci6cec50f2d2ecd06e@mail.gmail.com> (raw)
In-Reply-To: <u4pso7dlr.fsf@gnu.org>

On 11/24/06, Eli Zaretskii <eliz@gnu.org> wrote:

> Because someone needs to remember to update the hardcoded string each
> time a new version is released.

Someone needs to remember pushing up the version anyway.

> Having that in admin.el is only a
> band-aid, since someone needs to remember to run it prior to a
> release.  That's a maintenance burden that we should avoid, I think.

Releasing a version inevitably requires certain amount of
administrative steps, and running admin.el seems like the less of it.
All depends, I suppose, on whether the steps to be followed by the
release manager are documented.

> However, given the amount of files we already handle in admin.el,
> perhaps adding lib-src/makefile.w32-in to the list isn't a big deal.
> Although I'd prefer that all those files except version.el were
> handled like we do with -DVERSION in lib-src/Makefile.in.

I propose the following little patch, that uses the admin.el route and
is minimally disruptive. After the release we can change this to use
the method you suggest.

                    /L/e/k/t/u


Index: admin/admin.el
===================================================================
RCS file: /cvsroot/emacs/emacs/admin/admin.el,v
retrieving revision 1.10
diff -u -2 -r1.10 admin.el
--- admin/admin.el	15 Oct 2006 04:19:36 -0000	1.10
+++ admin/admin.el	24 Nov 2006 23:45:35 -0000
@@ -89,4 +89,7 @@
  		       (rx (and "EMACSVER" (1+ space)
  				(submatch (1+ (in "0-9."))))))
+  (set-version-in-file root "lib-src/makefile.w32-in" version
+		       (rx (and "VERSION" (0+ space) "=" (0+ space)
+				(submatch (1+ (in "0-9."))))))
   ;; nt/emacs.rc also contains the version number, but in an awkward
   ;; format. It must contain four components, separated by commas, and
Index: lib-src/makefile.w32-in
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/makefile.w32-in,v
retrieving revision 2.50
diff -u -2 -r2.50 makefile.w32-in
--- lib-src/makefile.w32-in	13 Nov 2006 11:07:47 -0000	2.50
+++ lib-src/makefile.w32-in	24 Nov 2006 23:47:02 -0000
@@ -25,4 +25,6 @@
 .PHONY: $(ALL)

+VERSION =	22.0.91
+
  LOCAL_FLAGS	= -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \
  		  -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \
@@ -69,5 +71,5 @@
  		$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS)

-ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR
+ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR -DVERSION="\"$(VERSION)\""
  ECLIENTOBJS =	$(BLD)/emacsclient.$(O) \
  		$(BLD)/getopt.$(O) \

  reply	other threads:[~2006-11-24 23:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-23  2:02 -DVERSION for emacsclient Juanma Barranquero
2006-11-23  4:27 ` Eli Zaretskii
2006-11-23  4:46   ` Lennart Borgman
2006-11-24 18:20     ` Eli Zaretskii
2006-11-23  9:17   ` Juanma Barranquero
2006-11-24 17:10   ` Benjamin Riefenstahl
2006-11-24 18:21   ` Eli Zaretskii
2006-11-24 19:28     ` Juanma Barranquero
2006-11-24 21:13       ` Eli Zaretskii
2006-11-24 23:55         ` Juanma Barranquero [this message]
2006-11-25 10:32           ` Eli Zaretskii
2006-11-25 13:01             ` Juanma Barranquero
2006-11-25 13:14               ` Eli Zaretskii
2006-11-25 13:25                 ` Juanma Barranquero
2006-11-25 14:01                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0611241555l4e61626ci6cec50f2d2ecd06e@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.