Remove dates from generated files.

This is related to the effort for reproducible builds.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit fc8564a5f0)
v3.5.13-sru
Slávek Banko 5 years ago
parent 92036ede2d
commit 9a345f8076
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -2142,10 +2142,9 @@ QString MakefileGenerator::build_args()
bool
MakefileGenerator::writeHeader(QTextStream &t)
{
time_t foo = time(NULL);
t << "#############################################################################" << endl;
t << "# Makefile for building: " << var("TARGET") << endl;
t << "# Generated by qmake (" << qmake_version() << ") (Qt " << QT_VERSION_STR << ") on: " << ctime(&foo);
t << "# Generated by qmake (" << qmake_version() << ") (Qt " << QT_VERSION_STR << ")" << endl;
t << "# Project: " << fileFixify(project->projectFile()) << endl;
t << "# Template: " << var("TEMPLATE") << endl;
t << "# Command: " << build_args() << endl;

@ -345,7 +345,7 @@ bool
ProjectGenerator::writeMakefile(QTextStream &t)
{
t << "######################################################################" << endl;
t << "# Automatically generated by qmake (" << qmake_version() << ") " << QDateTime::currentDateTime().toString() << endl;
t << "# Automatically generated by qmake (" << qmake_version() << ") " << endl;
t << "######################################################################" << endl << endl;
QStringList::Iterator it;
for(it = Option::before_user_vars.begin(); it != Option::before_user_vars.end(); ++it)

@ -1452,9 +1452,8 @@ UnixMakefileGenerator::writeLibtoolFile()
QTextStream t(&ft);
t << "# " << lname << " - a libtool library file\n";
time_t now = time(NULL);
t << "# Generated by qmake/libtool (" << qmake_version() << ") (Qt "
<< QT_VERSION_STR << ") on: " << ctime(&now) << "\n";
<< QT_VERSION_STR << ")\n";
t << "# The name that we can dlopen(3).\n"
<< "dlname='" << var(project->isActiveConfig("plugin") ? "TARGET" : "TARGET_x")

@ -2833,7 +2833,7 @@ void generateClass() // generate C++ source code for a class
{
const char *hdr1 = "/****************************************************************************\n"
"** %s meta object code from reading C++ file '%s'\n**\n";
const char *hdr2 = "** Created: %s\n"
const char *hdr2 = "** Created by: The Qt Meta Object Compiler version %d (Qt %s)\n";
const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n";
const char *hdr4 = "*****************************************************************************/\n\n";
int i;
@ -2863,8 +2863,6 @@ void generateClass() // generate C++ source code for a class
g->gen_count++;
if ( g->gen_count == 1 ) { // first class to be generated
QDateTime dt = QDateTime::currentDateTime();
QCString dstr = dt.toString().ascii();
QCString fn = g->fileName;
i = g->fileName.length()-1;
while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-1] != '\\' )
@ -2872,7 +2870,7 @@ void generateClass() // generate C++ source code for a class
if ( i >= 0 )
fn = &g->fileName[i];
fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn);
fprintf( out, hdr2, (const char*)dstr );
fprintf( out, hdr2, formatRevision, QT_VERSION_STR );
fprintf( out, "%s", hdr3 );
fprintf( out, "%s", hdr4 );

@ -2872,8 +2872,7 @@ void generateClass() // generate C++ source code for a class
{
const char *hdr1 = "/****************************************************************************\n"
"** %s meta object code from reading C++ file '%s'\n**\n";
const char *hdr2 = "** Created: %s\n"
"** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.8 edited Feb 2 14:59 $)\n**\n";
const char *hdr2 = "** Created by: The Qt Meta Object Compiler version %d (Qt %s)\n";
const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n";
const char *hdr4 = "*****************************************************************************/\n\n";
int i;
@ -2903,8 +2902,6 @@ void generateClass() // generate C++ source code for a class
g->gen_count++;
if ( g->gen_count == 1 ) { // first class to be generated
QDateTime dt = QDateTime::currentDateTime();
QCString dstr = dt.toString().ascii();
QCString fn = g->fileName;
i = g->fileName.length()-1;
while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-1] != '\\' )
@ -2912,7 +2909,7 @@ void generateClass() // generate C++ source code for a class
if ( i >= 0 )
fn = &g->fileName[i];
fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn);
fprintf( out, hdr2, (const char*)dstr );
fprintf( out, hdr2, formatRevision, QT_VERSION_STR );
fprintf( out, "%s", hdr3 );
fprintf( out, "%s", hdr4 );

@ -137,7 +137,7 @@ void Uic::embed( QTextStream& out, const char* project, const QStringList& image
for ( it = images.begin(); it != images.end(); ++it )
out << "** " << *it << "\n";
out << "**\n";
out << "** Created: " << QDateTime::currentDateTime().toString() << "\n";
out << "** Created by: The Qt user interface compiler (Qt " << QT_VERSION_STR << ")\n";
out << "**\n";
out << "** WARNING! All changes made in this file will be lost!\n";
out << "****************************************************************************/\n";

@ -320,7 +320,7 @@ int main( int argc, char * argv[] )
out << "/****************************************************************************" << endl;
out << "** Form "<< (impl? "implementation" : "interface") << " generated from reading ui file '" << fileName << "'" << endl;
out << "**" << endl;
out << "** Created: " << QDateTime::currentDateTime().toString() << endl;
out << "** Created by: The Qt user interface compiler (Qt " << QT_VERSION_STR << ")" << endl;
out << "**" << endl;
out << "** WARNING! All changes made in this file will be lost!" << endl;
out << "****************************************************************************/" << endl << endl;

Loading…
Cancel
Save