aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/source_sisupod.d
diff options
context:
space:
mode:
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)
);
}