mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] {os-release, rootfs}.make: Don't rely on GNU date
Date: Sun, 26 Feb 2012 18:56:18 +0100	[thread overview]
Message-ID: <1330278978-2991-1-git-send-email-bernhard@bwalle.de> (raw)

date -Iseconds is a GNU extension. Since that one is only used in two
places, don't check for GNU date but use the portable variant (format
specifiers).

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/os-release.make |    2 +-
 rules/rootfs.make     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/os-release.make b/rules/os-release.make
index 3f41374..eb32535 100644
--- a/rules/os-release.make
+++ b/rules/os-release.make
@@ -46,7 +46,7 @@ $(STATEDIR)/os-release.targetinstall: $(PTXDIST_PTXCONFIG) $(PTXDIST_PLATFORMCON
 		@PTXDIST_VERSION@, $(PTXDIST_VERSION_FULL))
 
 	@$(call install_replace, os-release, /etc/os-release, \
-		@DATE@, $(shell date -Iseconds))
+		@DATE@, $(shell date +%Y-%M-%dT%H:%M:%S%z))
 
 
 	@$(call install_finish,os-release)
diff --git a/rules/rootfs.make b/rules/rootfs.make
index 13a5f2c..ed30235 100644
--- a/rules/rootfs.make
+++ b/rules/rootfs.make
@@ -185,7 +185,7 @@ ifdef PTXCONF_ROOTFS_ISSUE
 	@$(call install_replace, rootfs, /etc/issue, \
 		@EXTRAVERSION@, $(PTXDIST_VERSION_SCM))
 	@$(call install_replace, rootfs, /etc/issue, \
-		@DATE@, $(shell date -Iseconds))
+		@DATE@, $(shell date +%Y-%M-%dT%H:%M:%S%z))
 	@$(call install_replace, rootfs, /etc/issue, \
 		@VENDOR@, $(PTXCONF_PROJECT_VENDOR))
 	@$(call install_replace, rootfs, /etc/issue, \
-- 
1.7.9


-- 
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2012-02-26 17:56 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=1330278978-2991-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.de \
    /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