From ce3424579b0f7b4d8d6e497ec7620d6595e9adbd Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Thu, 4 Dec 2008 20:14:23 +0000 Subject: [PATCH] Evaluate date using C locale and UTC timezone, original patch by Laurent Vivier git-svn-id: svn://coreboot.org/openbios/openbios-devel@280 f158a5a8-5612-0410-a976-696ce0be7e32 --- config/examples/amd64_rules.xml | 2 +- config/examples/cross-ppc_rules.xml | 4 ++-- config/examples/cross-sparc32_rules.xml | 4 ++-- config/examples/cross-sparc64_rules.xml | 4 ++-- config/examples/sparc32_rules.xml | 4 ++-- config/examples/sparc64_rules.xml | 4 ++-- config/examples/x86_rules.xml | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/config/examples/amd64_rules.xml b/config/examples/amd64_rules.xml index c1407df..abc49ce 100644 --- a/config/examples/amd64_rules.xml +++ b/config/examples/amd64_rules.xml @@ -34,7 +34,7 @@ versions: $(ODIR)/forth/version.fs $(ODIR)/forth/version.fs: @test -d $(dir $@) || $(INSTALL) -d $(dir $@) - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo ": builddate \" $$DATE\" ; " ; \ echo ": version \" $(VERSION)\" ; " ; ) \ > $(dir $@)/version.fs diff --git a/config/examples/cross-ppc_rules.xml b/config/examples/cross-ppc_rules.xml index 9ac37ca..490f5e9 100644 --- a/config/examples/cross-ppc_rules.xml +++ b/config/examples/cross-ppc_rules.xml @@ -40,13 +40,13 @@ VERSION := "1.0RC1" versions: $(ODIR)/target/include/openbios-version.h $(ODIR)/forth/version.fs $(ODIR)/forth/version.fs: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo ": builddate \" $$DATE\" ; " ; \ echo ": version \" $(VERSION)\" ; " ; ) \ > $(dir $@)/version.fs $(ODIR)/target/include/openbios-version.h: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo "#define OPENBIOS_BUILD_DATE \"$$DATE\"" ; \ echo "#define OPENBIOS_VERSION_STR \"$(VERSION)\"" ; \ echo "#define OPENBIOS_RELEASE \"$(VERSION)\"" ; ) \ diff --git a/config/examples/cross-sparc32_rules.xml b/config/examples/cross-sparc32_rules.xml index 6f8b546..2273e14 100644 --- a/config/examples/cross-sparc32_rules.xml +++ b/config/examples/cross-sparc32_rules.xml @@ -38,13 +38,13 @@ VERSION := "1.0RC1" versions: $(ODIR)/target/include/openbios-version.h $(ODIR)/forth/version.fs $(ODIR)/forth/version.fs: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo ": builddate \" $$DATE\" ; " ; \ echo ": version \" $(VERSION)\" ; " ; ) \ > $(dir $@)/version.fs $(ODIR)/target/include/openbios-version.h: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo "#define OPENBIOS_BUILD_DATE \"$$DATE\"" ; \ echo "#define OPENBIOS_VERSION_STR \"$(VERSION)\"" ; \ echo "#define OPENBIOS_RELEASE \"$(VERSION)\"" ; ) \ diff --git a/config/examples/cross-sparc64_rules.xml b/config/examples/cross-sparc64_rules.xml index fc22e8e..ec9852e 100644 --- a/config/examples/cross-sparc64_rules.xml +++ b/config/examples/cross-sparc64_rules.xml @@ -39,13 +39,13 @@ VERSION := "1.0RC1" versions: $(ODIR)/target/include/openbios-version.h $(ODIR)/forth/version.fs $(ODIR)/forth/version.fs: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo ": builddate \" $$DATE\" ; " ; \ echo ": version \" $(VERSION)\" ; " ; ) \ > $(dir $@)/version.fs $(ODIR)/target/include/openbios-version.h: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo "#define OPENBIOS_BUILD_DATE \"$$DATE\"" ; \ echo "#define OPENBIOS_VERSION_STR \"$(VERSION)\"" ; \ echo "#define OPENBIOS_RELEASE \"$(VERSION)\"" ; ) \ diff --git a/config/examples/sparc32_rules.xml b/config/examples/sparc32_rules.xml index a3c1132..77fe822 100644 --- a/config/examples/sparc32_rules.xml +++ b/config/examples/sparc32_rules.xml @@ -43,13 +43,13 @@ VERSION := "1.0RC1" versions: $(ODIR)/target/include/openbios-version.h $(ODIR)/forth/version.fs $(ODIR)/forth/version.fs: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo ": builddate \" $$DATE\" ; " ; \ echo ": version \" $(VERSION)\" ; " ; ) \ > $(dir $@)/version.fs $(ODIR)/target/include/openbios-version.h: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo "#define OPENBIOS_BUILD_DATE \"$$DATE\"" ; \ echo "#define OPENBIOS_VERSION_STR \"$(VERSION)\"" ; \ echo "#define OPENBIOS_RELEASE \"$(VERSION)\"" ; ) \ diff --git a/config/examples/sparc64_rules.xml b/config/examples/sparc64_rules.xml index 316bb68..c841505 100644 --- a/config/examples/sparc64_rules.xml +++ b/config/examples/sparc64_rules.xml @@ -50,13 +50,13 @@ VERSION := "1.0RC1" versions: $(ODIR)/target/include/openbios-version.h $(ODIR)/forth/version.fs $(ODIR)/forth/version.fs: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo ": builddate \" $$DATE\" ; " ; \ echo ": version \" $(VERSION)\" ; " ; ) \ > $(dir $@)/version.fs $(ODIR)/target/include/openbios-version.h: - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo "#define OPENBIOS_BUILD_DATE \"$$DATE\"" ; \ echo "#define OPENBIOS_VERSION_STR \"$(VERSION)\"" ; \ echo "#define OPENBIOS_RELEASE \"$(VERSION)\"" ; ) \ diff --git a/config/examples/x86_rules.xml b/config/examples/x86_rules.xml index 0b0ddfe..c98189b 100644 --- a/config/examples/x86_rules.xml +++ b/config/examples/x86_rules.xml @@ -38,7 +38,7 @@ versions: $(ODIR)/forth/version.fs $(ODIR)/forth/version.fs: @test -d $(dir $@) || $(INSTALL) -d $(dir $@) - @DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \ + @DATE="$(shell echo `LC_ALL=C TZ=UTC date +'%b %e %Y %H:%M'`)" ; \ ( echo ": builddate \" $$DATE\" ; " ; \ echo ": version \" $(VERSION)\" ; " ; ) \ > $(dir $@)/version.fs