pike.git / NT / tools / rntcc

version» Context lines:

pike.git/NT/tools/rntcc:340:    }    }       if(operation == "link" && !share)    {    rm(output);    Stdio.write_file(output,    "#!/usr/local/bin/pike\n"    "inherit \""+find_lib_location()+"\";\n"    "int main(int argc, string *argv) {\n" -  "argv[0]+=\".exe\";\n" +  "argv[0]=" + sprintf ("%O", output + ".exe") + ";\n"    "argv[0]=getenv(\"NTDRIVE\")+fixpath(combine_path(getcwd(),argv[0]));\n"    " int ret=silent_do_cmd(argv);\n"    " exit(ret);\n"    "}\n");    chmod(output,0755);    }    exit(0);   }