summaryrefslogtreecommitdiff
path: root/mbld/install.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-16 14:13:47 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-16 14:13:47 -0700
commit9df78d333d4fcc74754e16ddf06c2fba58c9858a (patch)
tree03f1f12dcd4cb74f0e6cc4fd63b95f9234b4ec5a /mbld/install.myr
parentb7747c5a3d36f99514b1945efb05b9f04f7dc74a (diff)
downloadmc-9df78d333d4fcc74754e16ddf06c2fba58c9858a.tar.gz
Push/pop directories appropriately.
We had bugs because this was done by just setting dirs, without properly changing back at the end of a command. Ordering of build targets would break builds.
Diffstat (limited to 'mbld/install.myr')
-rw-r--r--mbld/install.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbld/install.myr b/mbld/install.myr
index 88c80bf..ca053db 100644
--- a/mbld/install.myr
+++ b/mbld/install.myr
@@ -52,7 +52,7 @@ const movetargs = {b, delete
const movefile = {b, delete, dir, file, instdir, destdir, prefix, perm
var path
- setdir(b, dir)
+ pushdir(b, dir)
path = std.pathjoin([destdir, instdir, prefix, file][:])
if delete
std.put("\tdelete %s\n", path)
@@ -72,6 +72,7 @@ const movefile = {b, delete, dir, file, instdir, destdir, prefix, perm
;;
;;
std.slfree(path)
+ popdir(b)
}
const moveman = {b, delete, dir, man