@@ -397,26 +397,25 @@ int main(int argc, char **argv)
397397 {
398398 std::ofstream fout1 (" lib/lib.pri" );
399399 fout1.exceptions (std::ios_base::failbit | std::ios_base::badbit);
400- if (fout1.is_open ()) {
401- fout1 << " # no manual edits - this file is autogenerated by dmake\n\n " ;
402- fout1 << " include($$PWD/pcrerules.pri)\n " ;
403- fout1 << " include($$PWD/../externals/externals.pri)\n " ;
404- fout1 << " INCLUDEPATH += $$PWD\n " ;
405- fout1 << " HEADERS += " ;
406- for (const std::string &libfile_h : libfiles_h) {
407- fout1 << " $${PWD}/" << libfile_h;
408- if (libfile_h != libfiles_h.back ())
409- fout1 << " \\\n " << std::string (11 , ' ' );
410- }
411- fout1 << " \n\n SOURCES += " ;
412- for (const std::string &libfile : libfiles) {
413- fout1 << " $${PWD}/" << libfile.substr (4 );
414- if (libfile != libfiles.back ())
415- fout1 << " \\\n " << std::string (11 , ' ' );
416- }
417- fout1 << " \n " ;
400+
401+ fout1 << " # no manual edits - this file is autogenerated by dmake\n\n " ;
402+ fout1 << " include($$PWD/pcrerules.pri)\n " ;
403+ fout1 << " include($$PWD/../externals/externals.pri)\n " ;
404+ fout1 << " INCLUDEPATH += $$PWD\n " ;
405+ fout1 << " HEADERS += " ;
406+ for (const std::string &libfile_h : libfiles_h) {
407+ fout1 << " $${PWD}/" << libfile_h;
408+ if (libfile_h != libfiles_h.back ())
409+ fout1 << " \\\n " << std::string (11 , ' ' );
418410 }
419- }
411+ fout1 << " \n\n SOURCES += " ;
412+ for (const std::string &libfile : libfiles) {
413+ fout1 << " $${PWD}/" << libfile.substr (4 );
414+ if (libfile != libfiles.back ())
415+ fout1 << " \\\n " << std::string (11 , ' ' );
416+ }
417+ fout1 << " \n " ;
418+ }
420419
421420 static const char makefile[] = " Makefile" ;
422421 std::ofstream fout (makefile, std::ios_base::trunc);
0 commit comments