mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
build: Honor $SOURCE_DATE_EPOCH for the recorded timestamp.
Reported by Jan Nieuwenhuizen <janneke@gnu.org> at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20272#36>. * libguile/Makefile.am (libpath.h): Honor 'SOURCE_DATE_EPOCH'.
This commit is contained in:
parent
2fbde7f02a
commit
54b43451ef
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue