mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Print xsltproc command line on verbose mode
Printed command line can be used to manually test the import function, allowing faster testing of XSLT changes, and showing debug prints that are discarded by Subsurface. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4393f59250
commit
f3abedd588
1 changed files with 8 additions and 0 deletions
8
file.c
8
file.c
|
|
@ -1123,6 +1123,14 @@ int parse_manual_file(const char *filename, char **params, int pnr)
|
||||||
if (try_to_xslt_open_csv(filename, &mem, "manualCSV"))
|
if (try_to_xslt_open_csv(filename, &mem, "manualCSV"))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
#ifndef SUBSURFACE_MOBILE
|
||||||
|
if (verbose >= 2) {
|
||||||
|
fprintf(stderr, "(echo '<manualCSV>'; cat %s;echo '</manualCSV>') | xsltproc ", filename);
|
||||||
|
for (i=0; params[i]; i+=2)
|
||||||
|
fprintf(stderr, "--stringparam %s %s ", params[i], params[i+1]);
|
||||||
|
fprintf(stderr, "%s/xslt/manualcsv2xml.xslt -\n", SUBSURFACE_SOURCE);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
ret = parse_xml_buffer(filename, mem.buffer, mem.size, &dive_table, (const char **)params);
|
ret = parse_xml_buffer(filename, mem.buffer, mem.size, &dive_table, (const char **)params);
|
||||||
|
|
||||||
free(mem.buffer);
|
free(mem.buffer);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue