diff options
Diffstat (limited to 'org/output_sisupod.org')
-rw-r--r-- | org/output_sisupod.org | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/org/output_sisupod.org b/org/output_sisupod.org index c9d5d2a..398af1c 100644 --- a/org/output_sisupod.org +++ b/org/output_sisupod.org @@ -79,7 +79,7 @@ if (!exists(pths_sisupod.sisupod_dir_())) { // used both by sisupod zipped (& sisupod filesystem (unzipped) which makes its own recursive dirs) pths_sisupod.sisupod_dir_().mkdirRecurse; } -if (doc_matters.opt_action["source"]) { +if (doc_matters.opt_action.source) { if (!exists(pths_sisupod.text_root(doc_matters.source_filename).filesystem_open_zpod)) { pths_sisupod.text_root(doc_matters.source_filename).filesystem_open_zpod.mkdirRecurse; } @@ -125,10 +125,10 @@ auto fn_sisupod = pths_sisupod.sisupod_filename(doc_matters.source_filename).zpo auto fn_src_out_sisupod_zip_base = pths_sisupod.image_root(doc_matters.source_filename).zpod.to!string ~ "/" ~ image; auto fn_src_out_filesystem = pths_sisupod.image_root(doc_matters.source_filename).filesystem_open_zpod.to!string ~ "/" ~ image; if (exists(fn_src_in)) { - if (doc_matters.opt_action["source"]) { + if (doc_matters.opt_action.source) { fn_src_in.copy(fn_src_out_filesystem); } - if (doc_matters.opt_action["sisupod"]) { + if (doc_matters.opt_action.sisupod) { auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = fn_src_out_sisupod_zip_base; auto zip_data = new OutBuffer(); @@ -143,10 +143,10 @@ auto fn_sisupod = pths_sisupod.sisupod_filename(doc_matters.source_filename).zpo auto fn_src_out_sisupod_zip_base = pths_sisupod.conf_root(doc_matters.source_filename).zpod.to!string ~ "/" ~ "sisu_document_make"; auto fn_src_out_filesystem = pths_sisupod.conf_root(doc_matters.source_filename).filesystem_open_zpod.to!string ~ "/" ~ "sisu_document_make"; if (exists(fn_src_in)) { - if (doc_matters.opt_action["source"]) { + if (doc_matters.opt_action.source) { fn_src_in.copy(fn_src_out_filesystem); } - if (doc_matters.opt_action["sisupod"]) { + if (doc_matters.opt_action.sisupod) { auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = fn_src_out_sisupod_zip_base; auto zip_data = new OutBuffer(); @@ -165,14 +165,14 @@ auto fn_sisupod = pths_sisupod.sisupod_filename(doc_matters.source_filename).zpo if (exists(fn_src_in)) { filelist_src_out_sisupod_arr ~= fn_src_out_sisupod_zip_base; filelist_src_zpod_arr ~= fn_src_out_inside_pod; - if (doc_matters.opt_action["source"]) { + if (doc_matters.opt_action.source) { auto filelist = File(pths_sisupod.fn_pod_filelist(doc_matters.source_filename).filesystem_open_zpod, "w"); foreach (source_pth_and_fn; filelist_src_zpod_arr) { filelist.writeln(source_pth_and_fn); } fn_src_in.copy(fn_src_out_filesystem); } - if (doc_matters.opt_action["sisupod"]) { + if (doc_matters.opt_action.sisupod) { auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = fn_src_out_sisupod_zip_base; auto zip_data = new OutBuffer(); @@ -205,10 +205,10 @@ auto fn_sisupod = pths_sisupod.sisupod_filename(doc_matters.source_filename).zpo insert_file, ).filesystem_open_zpod.to!string; if (exists(fn_src_in)) { - if (doc_matters.opt_action["source"]) { + if (doc_matters.opt_action.source) { fn_src_in.copy(fn_src_out_filesystem); } - if (doc_matters.opt_action["sisupod"]) { + if (doc_matters.opt_action.sisupod) { auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = fn_src_out_sisupod_zip_base; auto zip_data = new OutBuffer(); @@ -223,7 +223,7 @@ auto fn_sisupod = pths_sisupod.sisupod_filename(doc_matters.source_filename).zpo } { auto fn_src_in = doc_matters.source_filename; if (exists(fn_src_in)) { - if (doc_matters.opt_action["sisupod"]) { + if (doc_matters.opt_action.sisupod) { createZipFile!()(fn_sisupod, zip.build()); } } |