From: john at keeping.me.uk (John Keeping)
Subject: [PATCH v2 2/2] Makefile: get the git version from the submodule
Date: Mon, 4 Mar 2013 13:34:12 +0000 [thread overview]
Message-ID: <20130304133412.GR7738@serenity.lan> (raw)
In-Reply-To: <1362403598-16827-2-git-send-email-mailings@hupie.com>
On Mon, Mar 04, 2013 at 02:26:38PM +0100, Ferry Huberts wrote:
> From: Ferry Huberts <ferry.huberts at pelagic.nl>
>
> No more need to update Makefile when we switch git versions
Thanks for fixing my omission with the version number. I don't think
this patch is a good idea though - the whole point of GIT_VER (and the
get-git target that uses it) is to download a suitable version of Git
without needing to have git available. If we change GIT_VER to rely on
the submodule existing then we might as well delete it entirely.
I do wonder if we should change GIT_URL to point at:
https://git-core.googlecode.com/files/git-$(GIT_VER).tar.gz
since that's the URL in the Git release note.
> Signed-off-by: Ferry Huberts <ferry.huberts at pelagic.nl>
> ---
> Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 118a2c9..6d834ed 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -14,8 +14,8 @@ htmldir = $(docdir)
> pdfdir = $(docdir)
> mandir = $(prefix)/share/man
> SHA1_HEADER = <openssl/sha.h>
> -GIT_VER = 1.7.12.4
> -GIT_URL = https://github.com/git/git/archive/v$(GIT_VER).tar.gz
> +GIT_VER = $(shell git submodule status git | sed -r 's/^[^0-9a-fA-F]*([0-9a-fA-F]*).*/\1/')
> +GIT_URL = https://github.com/git/git/archive/$(GIT_VER).tar.gz
> INSTALL = install
> MAN5_TXT = $(wildcard *.5.txt)
> MAN_TXT = $(MAN5_TXT)
> --
> 1.7.11.7
next prev parent reply other threads:[~2013-03-04 13:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 13:26 [PATCH v2 1/2] Makefile: update GIT_VER to use v1.7.12.4 mailings
2013-03-04 13:26 ` [PATCH v2 2/2] Makefile: get the git version from the submodule mailings
2013-03-04 13:34 ` john [this message]
2013-03-04 14:26 ` Jason
2013-03-04 13:38 ` hjemli
2013-03-04 13:49 ` mailings
2013-03-04 13:56 ` hjemli
2013-03-04 14:22 ` Jason
2013-03-04 14:20 ` [PATCH v2 1/2] Makefile: update GIT_VER to use v1.7.12.4 Jason
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=20130304133412.GR7738@serenity.lan \
--to=cgit@lists.zx2c4.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).