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 <[email protected]>
---
 core/file.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/core/file.c b/core/file.c
index b30bcd5..85bc949 100644
--- a/core/file.c
+++ b/core/file.c
@@ -1177,6 +1177,14 @@ int parse_manual_file(const char *filename, char 
**params, int pnr)
        if (try_to_xslt_open_csv(filename, &mem, "manualCSV"))
                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);
 
        free(mem.buffer);
-- 
2.5.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to