[coreboot-gerrit] New patch to review for coreboot: genbuild_h: actually make date(1) based timestamp locale independent

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Sun Aug 9 20:55:21 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11146

-gerrit

commit 811046494ba6f38ffef97dbf3051602f756c088b
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sun Aug 9 20:53:16 2015 +0200

    genbuild_h: actually make date(1) based timestamp locale independent
    
    This fixes the botched fix in commit d9bc2fadc4ea74ebca0d793aeef288fe9f1acf0c
    
    Change-Id: I0c4445af2851bc80fabb631864321a56123ce7b0
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/genbuild_h/genbuild_h.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh
index be72f81..0a70eb8 100755
--- a/util/genbuild_h/genbuild_h.sh
+++ b/util/genbuild_h/genbuild_h.sh
@@ -32,8 +32,8 @@ if [ -d "${top}/.git" ] && [ -f "$(command -v git)" ]; then
 	DATE=$(git log --pretty=format:%ct -1)
 else
 	GITREV=Unknown
-	TIMESOURCE="LANG=C LC_ALL=C TZ=UTC date"
-	DATE=$(date +%s)
+	TIMESOURCE="date"
+	DATE=$(LANG= LC_ALL=C TZ=UTC date +%s)
 fi
 
 our_date() {



More information about the coreboot-gerrit mailing list