summaryrefslogtreecommitdiff
path: root/ReadMe.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-25 16:27:05 +1000
committerNeilBrown <neilb@suse.de>2013-06-25 16:27:05 +1000
commitb379508eeb26273f6044080788ffa1eb257c96f4 (patch)
tree3991b93cb0ada6511c79bdcd5ecb52c1a6d8748c /ReadMe.c
parent399e0b9709311bebde461c57f5622be68e15c6a0 (diff)
Makefile/version: use version/date from .git if possible.
If being built from a git tree, use the version and date information from the top commit rather than the hard-coded values. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'ReadMe.c')
-rw-r--r--ReadMe.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ReadMe.c b/ReadMe.c
index cb0678ab..51a6482a 100644
--- a/ReadMe.c
+++ b/ReadMe.c
@@ -24,7 +24,13 @@
#include "mdadm.h"
-char Version[] = Name " - v3.2.5 - 18th May 2012\n";
+#ifndef VERSION
+#define VERSION "3.2.5"
+#endif
+#ifndef VERS_DATE
+#define VERS_DATE "18th May 2012"
+#endif
+char Version[] = Name " - v" VERSION " - " VERS_DATE "\n";
/*
* File: ReadMe.c