* [PATCH 1/3] - Add GIT Version number
@ 2005-05-21 18:32 Sean
0 siblings, 0 replies; only message in thread
From: Sean @ 2005-05-21 18:32 UTC (permalink / raw)
To: git
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-21 18:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-21 18:32 [PATCH 1/3] - Add GIT Version number Sean
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).