summaryrefslogtreecommitdiff
path: root/mbld/install.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-17 11:43:11 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-17 11:43:11 -0700
commitc05e4d021a24645c06092dda39c6befdf77ec813 (patch)
tree6ba6f2c2c1f90653d1848ff837e6fdcef113f042 /mbld/install.myr
parent97f03b720b5d8656a316ce1ca14b89d4a411c59f (diff)
downloadmc-c05e4d021a24645c06092dda39c6befdf77ec813.tar.gz
Topologically sort targets.
This avoids tons of ugly, spurious chdir calls, as well as detecting cycles in library dependencies.
Diffstat (limited to 'mbld/install.myr')
-rw-r--r--mbld/install.myr4
1 files changed, 1 insertions, 3 deletions
diff --git a/mbld/install.myr b/mbld/install.myr
index ca053db..bc4dd27 100644
--- a/mbld/install.myr
+++ b/mbld/install.myr
@@ -4,7 +4,6 @@ use "config.use"
use "deps.use"
use "opts.use"
use "parse.use"
-use "subdir.use"
use "types.use"
use "util.use"
use "build.use"
@@ -52,7 +51,7 @@ const movetargs = {b, delete
const movefile = {b, delete, dir, file, instdir, destdir, prefix, perm
var path
- pushdir(b, dir)
+ setdir(b, dir)
path = std.pathjoin([destdir, instdir, prefix, file][:])
if delete
std.put("\tdelete %s\n", path)
@@ -72,7 +71,6 @@ const movefile = {b, delete, dir, file, instdir, destdir, prefix, perm
;;
;;
std.slfree(path)
- popdir(b)
}
const moveman = {b, delete, dir, man