From 43f911242032982a2456ef8f7fc0d8a3a1d3dd6b Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Mon, 2 May 2016 20:11:34 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- core/file.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/file.c b/core/file.c index b30bcd55e..85bc949fe 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 ''; cat %s;echo '') | 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); -- cgit v1.2.3-70-g09d2