1
0
Fork 0

Write the last_apt file into the workdir instead of the directory where genapts is started from (closes #12)

This commit is contained in:
Ralf Gerlich 2010-01-24 09:01:03 +01:00
parent 450f22f2d7
commit 1ad2b2e0e9

View file

@ -230,6 +230,8 @@ int main( int argc, char **argv ) {
SGPath sgp( airportareadir );
sgp.append( "dummy" );
sgp.create_dir( 0755 );
string lastaptfile = work_dir+"/last_apt";
// initialize persistant polygon counter
string counter_file = airportareadir+"/poly_counter";
@ -310,8 +312,9 @@ int main( int argc, char **argv ) {
// check point our location
char command[256];
sprintf( command,
"echo before building %s >> last_apt",
last_apt_id.c_str() );
"echo before building %s >> %s",
last_apt_id.c_str(),
lastaptfile.c_str() );
system( command );
// process previous record
@ -412,8 +415,9 @@ int main( int argc, char **argv ) {
// check point our location
char command[256];
sprintf( command,
"echo before building %s >> last_apt",
last_apt_id.c_str() );
"echo before building %s >> %s",
last_apt_id.c_str(),
lastaptfile.c_str() );
system( command );
// process previous record