1 |
/* |
/* |
2 |
instrument.c - file and directory instrumentation routines |
instrument.c - file and directory instrumentation routines |
3 |
Copyright (C) 2007, 2008 siliconforks.com |
Copyright (C) 2007, 2008, 2009 siliconforks.com |
4 |
|
|
5 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
6 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
163 |
} |
} |
164 |
if (! directory_is_empty(destination)) { |
if (! directory_is_empty(destination)) { |
165 |
char * expected_file = NULL; |
char * expected_file = NULL; |
166 |
if (jscoverage_mozilla) { |
if (jscoverage_mode == JSCOVERAGE_MOZILLA) { |
167 |
char * modules_directory = make_path(destination, "modules"); |
char * modules_directory = make_path(destination, "modules"); |
168 |
expected_file = make_path(modules_directory, "jscoverage.jsm"); |
expected_file = make_path(modules_directory, "jscoverage.jsm"); |
169 |
free(modules_directory); |
free(modules_directory); |
185 |
} |
} |
186 |
|
|
187 |
/* copy the resources */ |
/* copy the resources */ |
188 |
if (jscoverage_mozilla) { |
if (jscoverage_mode == JSCOVERAGE_MOZILLA) { |
189 |
char * chrome_directory = make_path(destination, "chrome"); |
char * chrome_directory = make_path(destination, "chrome"); |
190 |
char * jscoverage_chrome_directory = make_path(chrome_directory, "jscoverage"); |
char * jscoverage_chrome_directory = make_path(chrome_directory, "jscoverage"); |
191 |
mkdirs(jscoverage_chrome_directory); |
mkdirs(jscoverage_chrome_directory); |