[7004] Fixed generating makefile.am in git_id

This commit is contained in:
Wyk3d 2009-01-02 16:16:20 +02:00
parent c08ed13497
commit 1896ace8ff
2 changed files with 11 additions and 5 deletions

View file

@ -610,8 +610,11 @@ bool generate_sql_makefile()
sql_update_dir, sql_update_dir
);
for(std::set<std::string>::iterator itr = file_list.begin(); itr != file_list.end(); ++itr)
fprintf(fout, "\t%s \\\n", itr->c_str());
for(std::set<std::string>::iterator itr = file_list.begin(), next; itr != file_list.end(); ++itr)
{
next = itr; ++next;
fprintf(fout, "\t%s %s\n", itr->c_str(), next == file_list.end() ? "" : "\\");
}
fprintf(fout,
"\n## Additional files to include when running 'make dist'\n"
@ -619,8 +622,11 @@ bool generate_sql_makefile()
"EXTRA_DIST = \\\n"
);
for(std::set<std::string>::iterator itr = file_list.begin(); itr != file_list.end(); ++itr)
fprintf(fout, "\t%s \\\n", itr->c_str());
for(std::set<std::string>::iterator itr = file_list.begin(), next; itr != file_list.end(); ++itr)
{
next = itr; ++next;
fprintf(fout, "\t%s %s\n", itr->c_str(), next == file_list.end() ? "" : "\\");
}
fclose(fout);