summaryrefslogtreecommitdiff
path: root/mbld/install.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-02 19:03:19 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-02 19:04:45 -0800
commitc782bfb900fdda8645f8dfe47aae345e21540633 (patch)
tree7d49925d8d5fee6e21d72f6cdcafe21279376925 /mbld/install.myr
parent7a08119041e6c1ac8f26f52ba7afff42ac21e631 (diff)
downloadmc-c782bfb900fdda8645f8dfe47aae345e21540633.tar.gz
Update code to match docs.
Diffstat (limited to 'mbld/install.myr')
-rw-r--r--mbld/install.myr9
1 files changed, 5 insertions, 4 deletions
diff --git a/mbld/install.myr b/mbld/install.myr
index c5917e5..b5592af 100644
--- a/mbld/install.myr
+++ b/mbld/install.myr
@@ -41,12 +41,13 @@ const movetargs = {b, rm
;;
| `Data dt:
for blob in dt.blobs
- if dt.base.len == 0
- pfx = config.Sharepath
+ if dt.path.len == 0
+ pfx = std.pathcat(config.Sharepath, dt.name)
+ movefile(b, rm, dt.dir, blob, pfx, 0o644)
+ std.slfree(pfx)
else
- pfx = dt.base
+ movefile(b, rm, dt.dir, blob, dt.path, 0o644)
;;
- movefile(b, rm, dt.dir, blob, pfx, 0o644)
;;
| `Gen gt:
/* nothing to do */