dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/Makefile-Fix-date-to-be-output-in-ISO-format.patch

b7f731
From 53835cf50023aaad6887b647a3aaab524bd9b39e Mon Sep 17 00:00:00 2001
b7f731
From: Jes Sorensen <Jes.Sorensen@gmail.com>
b7f731
Date: Tue, 10 Jan 2017 18:51:40 -0500
b7f731
Subject: [RHEL7.5 PATCH 001/169] Makefile: Fix date to be output in ISO
b7f731
 format
b7f731
b7f731
Updated the static version in the release, but forgot to fix the
b7f731
Makefile generated version when extracting from git
b7f731
b7f731
Reported-by: NeilBrown <neilb@suse.com>
b7f731
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
b7f731
---
b7f731
 Makefile | 2 +-
b7f731
 1 file changed, 1 insertion(+), 1 deletion(-)
b7f731
b7f731
diff --git a/Makefile b/Makefile
b7f731
index 5fd7f16..a6f464c 100644
b7f731
--- a/Makefile
b7f731
+++ b/Makefile
b7f731
@@ -89,7 +89,7 @@ DIRFLAGS += -DFAILED_SLOTS_DIR=\"$(FAILED_SLOTS_DIR)\"
b7f731
 CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(DIRFLAGS) $(COROSYNC) $(DLM)
b7f731
 
b7f731
 VERSION = $(shell [ -d .git ] && git describe HEAD | sed 's/mdadm-//')
b7f731
-VERS_DATE = $(shell [ -d .git ] && date --date="`git log -n1 --format=format:%cd --date=short`" '+%0dth %B %Y' | sed -e 's/1th/1st/' -e 's/2th/2nd/' -e 's/11st/11th/' -e 's/12nd/12th/')
b7f731
+VERS_DATE = $(shell [ -d .git ] && date --iso-8601 --date="`git log -n1 --format=format:%cd --date=iso --date=short`")
b7f731
 DVERS = $(if $(VERSION),-DVERSION=\"$(VERSION)\",)
b7f731
 DDATE = $(if $(VERS_DATE),-DVERS_DATE="\"$(VERS_DATE)\"",)
b7f731
 CFLAGS += $(DVERS) $(DDATE)
b7f731
-- 
b7f731
2.7.4
b7f731