diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-07-20 10:19:50 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-10-17 19:07:20 -0400 |
commit | 7f549e075bc5ee5e6c3bacfd94a18c01de91980a (patch) | |
tree | 506a4a012e261e5a4c1cf1ca56ba1cbcedaaba59 /org/doc_reform.org | |
parent | 0.8.0 name change in code use dr (doc reform) instead of sisu (diff) |
processing info
Diffstat (limited to 'org/doc_reform.org')
-rw-r--r-- | org/doc_reform.org | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/org/doc_reform.org b/org/doc_reform.org index a38fd26..7d8fee3 100644 --- a/org/doc_reform.org +++ b/org/doc_reform.org @@ -78,6 +78,7 @@ import std.algorithm; import std.parallelism; <<mixin_doc_reform_version>> <<mixin_pre_main>> +string project_name = "DocReform"; string program_name = "doc-reform"; /++ name "doc_reform" @@ -752,6 +753,9 @@ auto _opt_action = OptActions(); #+BEGIN_SRC d auto program_info() { struct ProgramInfo { + string project() { + return project_name; + } string name() { return program_name; } @@ -762,6 +766,14 @@ auto program_info() { ); return ver_; } + string compiler() { + string ver_ = format( + "%s D:%s, %s %s", + __VENDOR__, __VERSION__, + bits, os, + ); + return ver_; + } } return ProgramInfo(); } @@ -1203,25 +1215,34 @@ struct DocumentMatters { #+BEGIN_SRC d auto generator_program() { struct Prog_ { - auto name() { + string project_name() { + return program_info.project; + } + string name() { return program_info.name; } - auto ver() { + string ver() { return program_info.ver; } - auto name_and_version() { + string name_and_version() { return format( "%s-%s", - program_info.name, - program_info.ver, + name, + ver, ); } - auto url_home() { + string url_home() { return "http://sisudoc.org"; } - auto url_git() { + string url_git() { return "https://git.sisudoc.org/software/sisu"; } + auto compiler() { + return program_info.compiler; + } + auto stime() { + return Clock.currTime(UTC()).toSimpleString(); + } } return Prog_(); } |