guile-commits
[Top][All Lists]
Advanced

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

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


From: Andy Wingo
Subject: [Guile-commits] 04/14: build: Honor $SOURCE_DATE_EPOCH for the recorded timestamp.
Date: Wed, 1 Mar 2017 15:21:04 -0500 (EST)

wingo pushed a commit to branch master
in repository guile.

commit 817a07120925c55d754a4fc8f50b95e1d216d4c7
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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libguile/Makefile.am b/libguile/Makefile.am
index fa60220..0746606 100644
--- a/libguile/Makefile.am
+++ b/libguile/Makefile.am
@@ -740,7 +740,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]