Remove dates from generated files.

This is related to the effort for reproducible builds.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/24/head
Slávek Banko 4 years ago
parent 277646d8ab
commit 9d5d503f74
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -2142,10 +2142,9 @@ TQString MakefileGenerator::build_args()
bool
MakefileGenerator::writeHeader(TQTextStream &t)
{
time_t foo = time(NULL);
t << "#############################################################################" << endl;
t << "# Makefile for building: " << var("TARGET") << endl;
t << "# Generated by qmake (" << qmake_version() << ") (TQt " << TQT_VERSION_STR << ") on: " << ctime(&foo);
t << "# Generated by qmake (" << qmake_version() << ") (TQt " << TQT_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(TQTextStream &t)
{
t << "######################################################################" << endl;
t << "# Automatically generated by qmake (" << qmake_version() << ") " << TQDateTime::currentDateTime().toString() << endl;
t << "# Automatically generated by qmake (" << qmake_version() << ") " << endl;
t << "######################################################################" << endl << endl;
TQStringList::Iterator it;
for(it = Option::before_user_vars.begin(); it != Option::before_user_vars.end(); ++it)

@ -1452,9 +1452,8 @@ UnixMakefileGenerator::writeLibtoolFile()
TQTextStream t(&ft);
t << "# " << lname << " - a libtool library file\n";
time_t now = time(NULL);
t << "# Generated by qmake/libtool (" << qmake_version() << ") (TQt "
<< TQT_VERSION_STR << ") on: " << ctime(&now) << "\n";
<< TQT_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 TQt Meta Object Compiler version %d (TQt %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
TQDateTime dt = TQDateTime::currentDateTime();
TQCString dstr = dt.toString().ascii();
TQCString 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, TQT_VERSION_STR );
fprintf( out, "%s", hdr3 );
fprintf( out, "%s", hdr4 );

@ -5708,7 +5708,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 TQt Meta Object Compiler version %d (TQt %s)\n";
const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n";
const char *hdr4 = "*****************************************************************************/\n\n";
int i;
@ -5738,8 +5738,6 @@ void generateClass() // generate C++ source code for a class
g->gen_count++;
if ( g->gen_count == 1 ) { // first class to be generated
TQDateTime dt = TQDateTime::currentDateTime();
TQCString dstr = dt.toString().ascii();
TQCString fn = g->fileName;
i = g->fileName.length()-1;
while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-1] != '\\' )
@ -5747,7 +5745,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, TQT_VERSION_STR );
fprintf( out, "%s", hdr3 );
fprintf( out, "%s", hdr4 );

@ -137,7 +137,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima
for ( it = images.begin(); it != images.end(); ++it )
out << "** " << *it << "\n";
out << "**\n";
out << "** Created: " << TQDateTime::currentDateTime().toString() << "\n";
out << "** Created by: The TQt user interface compiler (TQt " << TQT_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: " << TQDateTime::currentDateTime().toString() << endl;
out << "** Created by: The TQt user interface compiler (TQt " << TQT_VERSION_STR << ")" << endl;
out << "**" << endl;
out << "** WARNING! All changes made in this file will be lost!" << endl;
out << "****************************************************************************/" << endl << endl;

Loading…
Cancel
Save