git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Sean" <seanlkml@sympatico.ca>
To: git@vger.kernel.org
Subject: [PATCH 1/3] - Add GIT Version number
Date: Sat, 21 May 2005 14:32:09 -0400 (EDT)	[thread overview]
Message-ID: <2230.10.10.10.24.1116700329.squirrel@linux1> (raw)
In-Reply-To: 

[-- Attachment #1: Type: text/plain, Size: 391 bytes --]


Add a version number to the GIT Makefile; lifted from the Linux kernel
source.  Once set, the version number will be reported by the "--version"
option on git commands that are converted to argp argument processing.

The version number was arbitrarily set to 0.5.0 as a starting point, but
obviously you can change it as you see fit.

Signed-off-by: Sean Estabrooks <seanlkml@sympatico.ca>

[-- Attachment #2: argp-Makefile-v3.patch --]
[-- Type: application/octet-stream, Size: 639 bytes --]

Index: Makefile
===================================================================
--- 58741c69570705801db4b785681790d636475695/Makefile  (mode:100644)
+++ uncommitted/Makefile  (mode:100644)
@@ -7,8 +7,16 @@
 # BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely randomly
 # break unless your underlying filesystem supports those sub-second times
 # (my ext3 doesn't).
+#
+VERSION = 0
+PATCHLEVEL = 5
+SUBLEVEL = 0
+EXTRAVERSION =
+
+RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+
 COPTS=-O2
-CFLAGS=-g $(COPTS) -Wall
+CFLAGS=-g $(COPTS) -Wall '-DVERSION="$(RELEASE)"'
 
 prefix=$(HOME)
 bin=$(prefix)/bin

                 reply	other threads:[~2005-05-21 18:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=2230.10.10.10.24.1116700329.squirrel@linux1 \
    --to=seanlkml@sympatico.ca \
    --cc=git@vger.kernel.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.
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).