aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2018-07-12 11:35:22 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:15 -0400
commitb3e491f2005e278b4533b3d935e96722b3facaa7 (patch)
tree07568b91f51c2e4e03a6896601525216714a1489 /src/sdp
parentobject_number, replaces object_cite_number in code (diff)
doc abstraction run only when processing flags require
Diffstat (limited to 'src/sdp')
-rwxr-xr-xsrc/sdp/sdp.d29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/sdp/sdp.d b/src/sdp/sdp.d
index 0093f74..8b8703f 100755
--- a/src/sdp/sdp.d
+++ b/src/sdp/sdp.d
@@ -57,6 +57,7 @@ void main(string[] args) {
}
}
bool[string] opts = [
+ "abstraction" : false,
"assertions" : false,
"concordance" : false,
"debug" : false,
@@ -100,6 +101,7 @@ void main(string[] args) {
];
auto helpInfo = getopt(args,
std.getopt.config.passThrough,
+ "abstraction", "--abstraction document abstraction ", &opts["abstraction"],
"assert", "--assert set optional assertions on", &opts["assertions"],
"concordance", "--concordance file for document", &opts["concordance"],
"debug", "--debug", &opts["debug"],
@@ -257,6 +259,32 @@ void main(string[] args) {
auto output_dir_set() {
return settings["output-dir"];
}
+ auto abstraction() {
+ bool _is;
+ if (
+ opts["abstraction"]
+ || concordance
+ || docbook
+ || epub
+ || html
+ || html_seg
+ || html_scroll
+ || manifest
+ || odt
+ || pdf
+ || postgresql
+ || qrcode
+ || sisupod
+ || source
+ || sqlite_discrete
+ || sqlite_update
+ || text
+ || xhtml
+ ) {
+ _is = true;
+ } else { _is = false; }
+ return _is;
+ }
}
auto _opt_action = OptActions();
auto _env = [
@@ -273,6 +301,7 @@ void main(string[] args) {
} else if (
!(arg.match(rgx.src_pth_sst_or_ssm))
&& _manifest_start.pod_manifest_file_with_path
+ && _opt_action.abstraction
) {
string contents_location_raw_;
string contents_location_;