Commit 5b5e97af authored by claes's avatar claes

*** empty log message ***

parent bb7f5805
/* /*
* Proview $Id: co_merge.c,v 1.1 2005-12-30 15:46:25 claes Exp $ * Proview $Id: co_merge.c,v 1.2 2006-02-08 11:32:13 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -97,8 +97,10 @@ int main( int argc, char *argv[]) ...@@ -97,8 +97,10 @@ int main( int argc, char *argv[])
switch ( mtype) { switch ( mtype) {
case merge_eMtype_IoBase: { case merge_eMtype_IoBase: {
strcpy( cfile, "/tmp/rt_io_base_methods.c"); strcpy( cfile, "$pwre_broot/$pwre_target/bld/lib/rt/rt_io_base_methods.c");
strcpy( ofile, "/tmp/rt_io_base_methods.o"); strcpy( ofile, "$pwre_broot/$pwre_target/bld/lib/rt/rt_io_base_methods.o");
dcli_translate_filename( cfile, cfile);
dcli_translate_filename( ofile, ofile);
outfp = fopen( cfile, "w"); outfp = fopen( cfile, "w");
if ( !outfp) { if ( !outfp) {
...@@ -149,9 +151,9 @@ int main( int argc, char *argv[]) ...@@ -149,9 +151,9 @@ int main( int argc, char *argv[])
system( cmd); system( cmd);
sprintf( cmd, "ar r %s %s", outfile, cfile); sprintf( cmd, "ar r %s %s", outfile, cfile);
system(cmd); system(cmd);
sprintf( cmd, "rm %s", ofile); // sprintf( cmd, "rm %s", ofile);
system(cmd); // system(cmd);
sprintf( cmd, "rm %s", cfile); // sprintf( cmd, "rm %s", cfile);
system(cmd); // system(cmd);
return 1; return 1;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment