commit e4fe294bdc2df4b323390e60ded8804294868614
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Thu Mar 26 18:14:45 2015 +0100
Make builds reproducible
We do not really need to use __TIME__ and __DATE__, which prevent from
making LyX builds reproducible.
Fixes bug #9415.
diff --git a/src/LyX.cpp b/src/LyX.cpp
index 0cd6e97..44e6e34 100644
--- a/src/LyX.cpp
+++ b/src/LyX.cpp
@@ -1147,8 +1147,6 @@ int parse_version(string const &, string const &, string
&)
if (string(lyx_git_commit_hash) != "none")
cout << to_utf8(_(" Git commit hash "))
<< string(lyx_git_commit_hash).substr(0,8) << endl;
- cout << to_utf8(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
- from_ascii(lyx_build_date), from_ascii(lyx_build_time))) <<
endl;
cout << lyx_version_info << endl;
exit(0);
return 0;
diff --git a/src/frontends/qt4/GuiAbout.cpp b/src/frontends/qt4/GuiAbout.cpp
index 1bb37e5..817efbf 100644
--- a/src/frontends/qt4/GuiAbout.cpp
+++ b/src/frontends/qt4/GuiAbout.cpp
@@ -146,8 +146,6 @@ static QString buildinfo()
if (std::string(lyx_git_commit_hash) != "none")
out << qt_(" Git commit hash ")
<< QString(lyx_git_commit_hash).left(8) << endl;
- out << toqstr(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
- from_ascii(lyx_build_date), from_ascii(lyx_build_time))) <<
endl;
out << lyx_version_info << endl;
return res;
diff --git a/src/tex2lyx/tex2lyx.cpp b/src/tex2lyx/tex2lyx.cpp
index 2104854..57790ab 100644
--- a/src/tex2lyx/tex2lyx.cpp
+++ b/src/tex2lyx/tex2lyx.cpp
@@ -606,8 +606,6 @@ int parse_version(string const &, string const &)
{
cout << "tex2lyx " << lyx_version
<< " (" << lyx_release_date << ")" << endl;
- cout << "Built on " << lyx_build_date << ", " << lyx_build_time
- << endl;
cout << lyx_version_info << endl;
throw StopException(error_code);
diff --git a/src/version.cpp b/src/version.cpp
index e5ac230..6701acc 100644
--- a/src/version.cpp
+++ b/src/version.cpp
@@ -29,11 +29,6 @@ extern char const * const lyx_git_commit_hash =
LYX_GIT_COMMIT_HASH;
///
extern char const * const lyx_release_date = LYX_DATE;
-///
-extern char const * const lyx_build_date = __DATE__;
-///
-extern char const * const lyx_build_time = __TIME__;
-
/// Package identifier (lyx[-<version-suffix>])
extern char const * const lyx_package = PACKAGE;
diff --git a/src/version.h b/src/version.h
index a112664..74cce6a 100644
--- a/src/version.h
+++ b/src/version.h
@@ -23,10 +23,6 @@ extern const int lyx_version_minor;
extern char const * const lyx_git_commit_hash;
///
extern char const * const lyx_release_date;
-///
-extern char const * const lyx_build_date;
-///
-extern char const * const lyx_build_time;
/// Package identifier (lyx[-<version-suffix>])
extern char const * const lyx_package;