aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/sdp.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/sdp.org')
-rw-r--r--org/sdp.org33
1 files changed, 31 insertions, 2 deletions
diff --git a/org/sdp.org b/org/sdp.org
index 39d76f6..9cd57bc 100644
--- a/org/sdp.org
+++ b/org/sdp.org
@@ -316,6 +316,33 @@ foreach(arg; args[1..$]) {
flag_action ~= " " ~ arg; // flags not taken by getopt
} else if (arg.match(rgx.src_pth)) {
fns_src ~= arg; // gather input markup source file names for processing
+ } else if (arg.match(rgx.src_pth_contents)) {
+ import std.file,
+ std.path;
+ string contents_location_;
+ try {
+ if (exists(arg)) {
+ contents_location_ = arg.readText;
+ }
+ }
+ catch (ErrnoException ex) {
+ }
+ catch (FileException ex) {
+ // Handle errors
+ }
+ auto contents_locations_arr =
+ (cast(char[]) contents_location_).split;
+ auto tmp_dir_ = (arg).dirName.array;
+ foreach (contents_location; contents_locations_arr) {
+ assert(contents_location.match(rgx.src_pth),
+ "not a recognised file: " ~
+ contents_location
+ );
+ auto contents_location_pth_ = (contents_location).to!string;
+ fns_src ~= (((tmp_dir_).chainPath(contents_location_pth_)).array).to!(char[]);
+ }
+ } else if (arg.match(rgx.src_pth_zip)) {
+ // fns_src ~= arg; // gather input markup source file names for processing
} else { // anything remaining, unused
arg_unrecognized ~= " " ~ arg;
}
@@ -373,8 +400,9 @@ scope(failure) {
}
}
enforce(
- fn_src.match(rgx.src_pth),
- "not a sisu markup filename"
+ fn_src.match(rgx.src_pth_types),
+ "not a sisu markup filename: <<" ~
+ fn_src ~ ">>"
);
#+END_SRC
@@ -403,6 +431,7 @@ if (doc_matters.opt_action["verbose"]) {
SiSUabstractionSummary!()(doc_abstraction, doc_matters);
}
#+END_SRC
+
**** 1. _debug_ (document parts, checkdoc) :debug:checkdoc:
- [[./meta_output_debugs.org][meta_output_debugs]]