summaryrefslogtreecommitdiff
path: root/subdir.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-12 22:05:49 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-12 22:05:49 -0700
commit66a103f6afd50eb45e9ba62f167688edeb10063a (patch)
tree9703bea9cbdb0c91e703e147eb6cc450e61762f0 /subdir.myr
parenta882c392dcde4b86d96b6b9e920c9d8e37f0aaad (diff)
downloadmbld-66a103f6afd50eb45e9ba62f167688edeb10063a.tar.gz
Remove subdir support from 'subdirs'.
Diffstat (limited to 'subdir.myr')
-rw-r--r--subdir.myr16
1 files changed, 7 insertions, 9 deletions
diff --git a/subdir.myr b/subdir.myr
index 210064c..0efd958 100644
--- a/subdir.myr
+++ b/subdir.myr
@@ -9,17 +9,15 @@ pkg bld =
const subdirs = {p, subs, targ
for s in subs
- match targ
- | `std.None: /* nothing */
- | `std.Some t:
- if !std.sleq(t, s)
- continue
- ;;
- ;;
-
std.put("Entering directory '%s'\n", s)
- run(p.cmd, s)
+ if !std.chdir(s)
+ std.fatal(1, "unable to enter directory %s\n", s)
+ ;;
+ run(p.cmd)
std.put("Leaving directory '%s'\n", s)
+ if !std.chdir("..")
+ std.fatal(1, "unable to leave directory %s\n", s)
+ ;;
;;
}