guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 01/01: build: Honor $SOURCE_DATE_EPOCH for the recorded


From: Ludovic Courtès
Subject: [Guile-commits] 01/01: build: Honor $SOURCE_DATE_EPOCH for the recorded timestamp.
Date: Wed, 14 Dec 2016 23:53:23 +0000 (UTC)

civodul pushed a commit to branch stable-2.0
in repository guile.

commit 54b43451efe8f49a3a65e8f782e79da5da4b5a01
Author: Ludovic Courtès <address@hidden>
Date:   Wed Dec 14 17:20:00 2016 +0100

    build: Honor $SOURCE_DATE_EPOCH for the recorded timestamp.
    
    Reported by Jan Nieuwenhuizen <address@hidden>
    at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20272#36>.
    
    * libguile/Makefile.am (libpath.h): Honor 'SOURCE_DATE_EPOCH'.
---
 libguile/Makefile.am |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libguile/Makefile.am b/libguile/Makefile.am
index 1383c13..74894e1 100644
--- a/libguile/Makefile.am
+++ b/libguile/Makefile.am
@@ -1,7 +1,7 @@
 ## Process this file with Automake to create Makefile.in
 ##
 ##   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007,
-##     2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
+##     2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016 Free Software 
Foundation, Inc.
 ##
 ##   This file is part of GUILE.
 ##
@@ -721,7 +721,8 @@ libpath.h: $(srcdir)/Makefile.in  
$(top_builddir)/config.status
                >> libpath.tmp
        @echo ' { "LIBS",          "@GUILE_LIBS@" }, \' >> libpath.tmp
        @echo ' { "CFLAGS",        "@GUILE_CFLAGS@" }, \' >> libpath.tmp
-       @echo ' { "buildstamp",    "'`date -u +'%Y-%m-%d %T'`'" }, \' >> 
libpath.tmp
+       @BUILD_DATE="$${SOURCE_DATE_EPOCH:-`date '+%s'`}" ; \
+        echo ' { "buildstamp",    "'`date -u +'%Y-%m-%d %T' -d 
@$$BUILD_DATE`'" }, \' >> libpath.tmp
        @echo '}' >> libpath.tmp
        $(AM_V_GEN)mv libpath.tmp libpath.h
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]