aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/source_sisupod.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-03-07 09:11:09 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit5a4df097b2976c24c449c56cf035995edfb1261e (patch)
tree9112c6f32f1b9a8d7cdc7849754d6b8f602de0c5 /src/sdp/source_sisupod.d
parentorg files minor touches (diff)
0.13.6 dlang function calls, syntax (ufcs related), logic should be retained
Diffstat (limited to 'src/sdp/source_sisupod.d')
-rw-r--r--src/sdp/source_sisupod.d18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/sdp/source_sisupod.d b/src/sdp/source_sisupod.d
index ce2bfaf..e6702bf 100644
--- a/src/sdp/source_sisupod.d
+++ b/src/sdp/source_sisupod.d
@@ -32,23 +32,23 @@ template SiSUpod() {
mixin SiSUlanguageCodes;
auto lang = Lang();
auto rgx = Rgx();
- assert (match(doc_matters.source_filename, rgx.src_fn));
+ assert (doc_matters.source_filename.match(rgx.src_fn));
try {
/+ create directory structure +/
if (!exists(pth_sisupod.doc(doc_matters.source_filename))) {
- mkdirRecurse(pth_sisupod.doc(doc_matters.source_filename));
+ pth_sisupod.doc(doc_matters.source_filename).mkdirRecurse;
}
if (!exists(pth_sisupod.conf(doc_matters.source_filename))) {
- mkdirRecurse(pth_sisupod.conf(doc_matters.source_filename));
+ pth_sisupod.conf(doc_matters.source_filename).mkdirRecurse;
}
if (!exists(pth_sisupod.css(doc_matters.source_filename))) {
- mkdirRecurse(pth_sisupod.css(doc_matters.source_filename));
+ pth_sisupod.css(doc_matters.source_filename).mkdirRecurse;
}
if (!exists(pth_sisupod.image(doc_matters.source_filename))) {
- mkdirRecurse(pth_sisupod.image(doc_matters.source_filename));
+ pth_sisupod.image(doc_matters.source_filename).mkdirRecurse;
}
if (!exists(pth_sisupod.doc_lng(doc_matters.source_filename, doc_matters.language))) {
- mkdirRecurse(pth_sisupod.doc_lng(doc_matters.source_filename, doc_matters.language));
+ pth_sisupod.doc_lng(doc_matters.source_filename, doc_matters.language).mkdirRecurse;
}
debug(sisupod) {
writeln(__LINE__, ": ",
@@ -80,8 +80,7 @@ template SiSUpod() {
));
}
if (exists(insert_file)) {
- copy(
- insert_file,
+ insert_file.copy(
pth_sisupod.fn_doc_insert(
doc_matters.source_filename,
insert_file,
@@ -98,8 +97,7 @@ template SiSUpod() {
);
}
if (exists("_sisu/image/"~ image)) {
- copy(
- ("_sisu/image/"~ image),
+ ("_sisu/image/"~ image).copy(
(pth_sisupod.image(doc_matters.source_filename) ~ "/" ~ image)
);
}