aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/doc_reform.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-10-16 12:26:36 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-10-17 19:07:20 -0400
commitab80f734713d5571f9014d17ec1f04d09b38011e (patch)
tree63e2e2a358834033fcee54bb58fd08ed6e9b4201 /src/doc_reform/doc_reform.d
parent0.8.2 yaml pod.manifest, read site config first (diff)
multilingual pods, zipped source
Diffstat (limited to 'src/doc_reform/doc_reform.d')
-rwxr-xr-xsrc/doc_reform/doc_reform.d18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d
index 40f1a05..e6a9b59 100755
--- a/src/doc_reform/doc_reform.d
+++ b/src/doc_reform/doc_reform.d
@@ -240,7 +240,7 @@ void main(string[] args) {
if (helpInfo.helpWanted) {
defaultGetoptPrinter("Some information about the program.", helpInfo.options);
}
- enum outTask { pod, source, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff }
+ enum outTask { source_or_pod, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff }
struct OptActions {
bool assertions() {
return opts["assertions"];
@@ -359,6 +359,9 @@ void main(string[] args) {
bool source() {
return opts["source"];
}
+ bool source_or_pod() {
+ return (opts["pod"] || opts["source"]) ? true : false;
+ }
bool sqlite_discrete() {
return opts["sqlite-discrete"];
}
@@ -463,8 +466,7 @@ void main(string[] args) {
|| odt
|| latex
|| manifest
- || pod
- || source
+ || source_or_pod
|| sqlite_discrete
) {
_is = true;
@@ -476,11 +478,8 @@ void main(string[] args) {
}
auto output_task_scheduler() {
int[] schedule;
- if (pod) {
- schedule ~= outTask.pod;
- }
- if (source) {
- schedule ~= outTask.source;
+ if (source_or_pod) {
+ schedule ~= outTask.source_or_pod;
}
if (sqlite_discrete) {
schedule ~= outTask.sqlite;
@@ -509,8 +508,7 @@ void main(string[] args) {
bool _is;
if (opts["abstraction"]
|| concordance
- || source
- || pod
+ || source_or_pod
|| harvest
|| html
|| epub