summaryrefslogtreecommitdiff
path: root/mbld/install.myr
diff options
context:
space:
mode:
Diffstat (limited to 'mbld/install.myr')
-rw-r--r--mbld/install.myr10
1 files changed, 10 insertions, 0 deletions
diff --git a/mbld/install.myr b/mbld/install.myr
index e8c368e..c5917e5 100644
--- a/mbld/install.myr
+++ b/mbld/install.myr
@@ -24,6 +24,7 @@ const uninstall = {b
const movetargs = {b, rm
var libarchive
+ var pfx
for tn in b.all
match gettarg(b.targs, tn)
@@ -38,6 +39,15 @@ const movetargs = {b, rm
movefile(b, rm, lt.dir, libarchive, config.Libpath, 0o644)
std.slfree(libarchive)
;;
+ | `Data dt:
+ for blob in dt.blobs
+ if dt.base.len == 0
+ pfx = config.Sharepath
+ else
+ pfx = dt.base
+ ;;
+ movefile(b, rm, dt.dir, blob, pfx, 0o644)
+ ;;
| `Gen gt:
/* nothing to do */
| `Cmd ct: