aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_paths.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-11-28 10:16:13 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit1f390cbff2500f373721021b97ca47a813b6b671 (patch)
treeca4f7ad1d729a1119796605fffe76161fcf74540 /org/default_paths.org
parent0.20.2 paths, config & manifest files (diff)
paths, manifestdoc-reform_v0.0.20
Diffstat (limited to 'org/default_paths.org')
-rw-r--r--org/default_paths.org29
1 files changed, 17 insertions, 12 deletions
diff --git a/org/default_paths.org b/org/default_paths.org
index 805e8a9..623584e 100644
--- a/org/default_paths.org
+++ b/org/default_paths.org
@@ -42,29 +42,33 @@ import sdp.meta.rgx;
#+name: template_paths_src
#+BEGIN_SRC d
-template ManifestFile() {
+template PodManifest() {
mixin SiSUrgxInit;
static auto rgx = Rgx();
- auto ManifestFile(P)(
+ auto PodManifest(P)(
P _pth,
) {
struct ManifestFile_ {
- auto manifest_file() {
+ auto pod_manifest_filename() {
string _manifest_file = "sisudoc.txt";
return _manifest_file;
}
- auto manifest_file_and_path() {
- string _manifest_file_and_path;
+ auto pod_manifest_path() {
+ string _manifest_path;
if (isValidPath(_pth) && _pth.isDir
- && ((_pth.chainPath(manifest_file).array).isFile)) {
- _manifest_file_and_path = _pth.chainPath(manifest_file).array;
+ && ((_pth.chainPath(pod_manifest_filename).array).isFile)) {
+ _manifest_path = _pth;
} else if (_pth.match(rgx.src_pth_contents)
&& (_pth.isFile)) {
- _manifest_file_and_path = _pth;
+ _manifest_path = dirName(_pth);
} else {
- // _manifest_file_and_path = "";
+ // _manifest_path = "";
}
- return _manifest_file_and_path;
+ return _manifest_path;
+ }
+ auto pod_manifest_file_with_path() {
+ string _manifest_path_and_file = pod_manifest_path.chainPath(pod_manifest_filename).array;
+ return _manifest_path_and_file;
}
}
return ManifestFile_();
@@ -460,8 +464,9 @@ template SiSUpathsSisupods() {
}
auto fn_pod_filelist(string fn_src) {
auto pod_root_ = pod_root(fn_src);
- auto pth_1_ = "sisudoc.txt";
- auto pth_2_ = pod_root(fn_src).filesystem_open_zpod.chainPath("sisudoc.txt").array;
+ auto _manifest = PodManifest!()(fn_src).pod_manifest_filename;
+ auto pth_1_ = _manifest;
+ auto pth_2_ = pod_root(fn_src).filesystem_open_zpod.chainPath(_manifest).array;
struct _pods {
auto zpod() {
return pth_1_;