mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] {os-release, rootfs}.make: Don't rely on GNU date
@ 2012-02-26 17:56 Bernhard Walle
  0 siblings, 0 replies; only message in thread
From: Bernhard Walle @ 2012-02-26 17:56 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-26 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-26 17:56 [ptxdist] [PATCH] {os-release, rootfs}.make: Don't rely on GNU date Bernhard Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox