mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[7004] Fixed generating makefile.am in git_id
This commit is contained in:
parent
c08ed13497
commit
1896ace8ff
2 changed files with 11 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue