[build] Use UTC, precise format for ‘buildstamp’ value.
authorThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 15 Jun 2010 23:01:05 +0000 (01:01 +0200)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Fri, 18 Jun 2010 17:49:02 +0000 (19:49 +0200)
* libguile/Makefile.am (libpath.h): For ‘buildstamp’,
  specify date(1) output format precisely, and in UTC.
* doc/ref/api-options.texi (Build Config): Update ‘buildstamp’ doc.

doc/ref/api-options.texi
libguile/Makefile.am

index b44bb18..3d54a28 100644 (file)
@@ -176,7 +176,7 @@ by @code{(version)}.  The value for @code{libguileinterface} is
 libtool compatible and has form CURRENT:REVISION:AGE
 (@pxref{Versioning,, Library interface versions, libtool, GNU
 Libtool}).  The value for @code{buildstamp} is the output of the
-date(1) command.
+command @samp{date -u +'%Y-%m-%d %T'} (UTC).
 
 In the source, @code{%guile-build-info} is initialized from
 libguile/libpath.h, which is completely generated, so deleting this file
index 9020a6d..5eea8dc 100644 (file)
@@ -652,7 +652,7 @@ 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`"'" }, \' >> libpath.tmp
+       @echo ' { "buildstamp",    "'`date -u +'%Y-%m-%d %T'`'" }, \' >> libpath.tmp
        @echo '}' >> libpath.tmp
        $(AM_V_GEN)mv libpath.tmp libpath.h