Make builds reproducible

We do not really need to use __TIME__ and __DATE__, which prevent from making LyX builds reproducible.

Fixes bug #9415.
This commit is contained in:
Jean-Marc Lasgouttes 2015-03-26 18:14:45 +01:00
parent 66fa801e74
commit e4fe294bdc
5 changed files with 0 additions and 15 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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;