changeset 21605:e6f76c393ad7

don't store build time in source file (bug #45659) * build-info.h, build-info.in.cc (octave_build_time): Delete function. * toplev.cc (F__octave_config_info__): Remove build_time field from struct. * libinterp/module.mk (libinterp/build-info.cc): Don't substitute build time.
author John W. Eaton <jwe@octave.org>
date Mon, 11 Apr 2016 11:36:27 -0400
parents d7a268e68e69
children ec01be3b8f5d
files libinterp/build-info.h libinterp/build-info.in.cc libinterp/corefcn/toplev.cc libinterp/module.mk
diffstat 4 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/build-info.h	Mon Apr 11 10:53:18 2016 -0400
+++ b/libinterp/build-info.h	Mon Apr 11 11:36:27 2016 -0400
@@ -25,5 +25,3 @@
 #include <string>
 
 extern OCTAVE_API std::string octave_hg_id (void);
-
-extern OCTAVE_API time_t octave_build_time (void);
--- a/libinterp/build-info.in.cc	Mon Apr 11 10:53:18 2016 -0400
+++ b/libinterp/build-info.in.cc	Mon Apr 11 11:36:27 2016 -0400
@@ -32,9 +32,3 @@
 {
   return "%OCTAVE_HG_ID%";
 }
-
-time_t
-octave_build_time (void)
-{
-  return %OCTAVE_BUILD_TIME%;
-}
--- a/libinterp/corefcn/toplev.cc	Mon Apr 11 10:53:18 2016 -0400
+++ b/libinterp/corefcn/toplev.cc	Mon Apr 11 11:36:27 2016 -0400
@@ -1424,7 +1424,6 @@
       { "api_version", OCTAVE_API_VERSION },
       { "archlibdir", subst_octave_home (OCTAVE_ARCHLIBDIR) },
       { "bindir", subst_octave_home (OCTAVE_BINDIR) },
-      { "build_time", octave_build_time () },
       { "canonical_host_type", OCTAVE_CANONICAL_HOST_TYPE },
       { "datadir", subst_octave_home (OCTAVE_DATADIR) },
       { "datarootdir", subst_octave_home (OCTAVE_DATAROOTDIR) },
--- a/libinterp/module.mk	Mon Apr 11 10:53:18 2016 -0400
+++ b/libinterp/module.mk	Mon Apr 11 11:36:27 2016 -0400
@@ -267,8 +267,7 @@
 	$(AM_V_GEN)rm -f $@-t && \
 	$(SED) \
 	  -e "s|%NO_EDIT_WARNING%|DO NOT EDIT!  Generated automatically by Makefile|" \
-	  -e "s|%OCTAVE_HG_ID%|`cat $(builddir)/HG-ID`|" \
-	  -e "s|%OCTAVE_BUILD_TIME%|`date +%s`|" $< > $@-t && \
+	  -e "s|%OCTAVE_HG_ID%|`cat $(builddir)/HG-ID`|" $< > $@-t && \
 	$(simple_move_if_change_rule)
 
 libinterp/builtins.cc: $(DEF_FILES) libinterp/mkbuiltins | libinterp/$(octave-dirstamp)