ref: 77ab32804f07545e7a3fcc2b40b5b7b5565091e8
dir: /subdir.myr/
use std
use "types.use"
use "util.use"
pkg bld =
const subdirs : (p : build#, subs : byte[:][:], targ : std.option(byte[:]) -> void)
;;
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)
std.put("Leaving directory '%s'\n", s)
;;
}