/[jscoverage]/trunk/instrument.c
ViewVC logotype

Diff of /trunk/instrument.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7 by siliconforks, Sat Aug 11 17:41:23 2007 UTC revision 69 by siliconforks, Thu Nov 22 01:50:33 2007 UTC
# Line 81  Line 81 
81    
82    fprintf(output, "<html><head><title>%s</title>\n", relative_path);    fprintf(output, "<html><head><title>%s</title>\n", relative_path);
83    fprintf(output, "<link rel=\"stylesheet\" type='text/css' href='%sjscoverage.css'>\n", relative_path_to_ancestor);    fprintf(output, "<link rel=\"stylesheet\" type='text/css' href='%sjscoverage.css'>\n", relative_path_to_ancestor);
84    fprintf(output, "<link rel=\"stylesheet\" type='text/css' href='%ssh_nedit.css'>\n", relative_path_to_ancestor);    fprintf(output, "<link rel=\"stylesheet\" type='text/css' href='%sjscoverage-sh_nedit.css'>\n", relative_path_to_ancestor);
85    fprintf(output, "<script src=\"%sjscoverage.js\"></script>\n", relative_path_to_ancestor);    fprintf(output, "<script src=\"%sjscoverage.js\"></script>\n", relative_path_to_ancestor);
86    fprintf(output, "<script src=\"%ssh_main.js\"></script>\n", relative_path_to_ancestor);    fprintf(output, "<script src=\"%sjscoverage-sh_main.js\"></script>\n", relative_path_to_ancestor);
87    fprintf(output, "<script src=\"%ssh_javascript.min.js\"></script>\n", relative_path_to_ancestor);    fprintf(output, "<script src=\"%sjscoverage-sh_javascript.js\"></script>\n", relative_path_to_ancestor);
88    fprintf(output, "<script>\n");    fprintf(output, "<script>\n");
89    fprintf(output, "var gCurrentFile = \"%s\";\n", relative_path);    fprintf(output, "var gCurrentFile = \"%s\";\n", relative_path);
90    fprintf(output, "</script>\n");    fprintf(output, "</script>\n");
# Line 225  Line 225 
225      fatal("cannot stat directory: %s", destination);      fatal("cannot stat directory: %s", destination);
226    }    }
227    
228      /* copy the resources */
229      jscoverage_copy_resources(destination);
230    
231    /* finally: copy the directory */    /* finally: copy the directory */
232    struct DirListEntry * list = make_recursive_dir_list(source);    struct DirListEntry * list = make_recursive_dir_list(source);
233    for (struct DirListEntry * p = list; p != NULL; p = p->next) {    for (struct DirListEntry * p = list; p != NULL; p = p->next) {
# Line 270  Line 273 
273    copy_resource("jscoverage.css", destination_directory);    copy_resource("jscoverage.css", destination_directory);
274    copy_resource("jscoverage.js", destination_directory);    copy_resource("jscoverage.js", destination_directory);
275    copy_resource("jscoverage-throbber.gif", destination_directory);    copy_resource("jscoverage-throbber.gif", destination_directory);
276    copy_resource("sh_main.js", destination_directory);    copy_resource("jscoverage-sh_main.js", destination_directory);
277    copy_resource("sh_javascript.min.js", destination_directory);    copy_resource("jscoverage-sh_javascript.js", destination_directory);
278    copy_resource("sh_nedit.css", destination_directory);    copy_resource("jscoverage-sh_nedit.css", destination_directory);
279  }  }

Legend:
Removed from v.7  
changed lines
  Added in v.69

  ViewVC Help
Powered by ViewVC 1.1.24