summaryrefslogtreecommitdiff
path: root/mbld/clean.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
commit492aca3ff6f829ee09c52e17c86a808430ee7df4 (patch)
treef97424e14c9d3277c78ff53082daec725e1f4dcb /mbld/clean.myr
parent11f79ed8ff75049f6b1866d70bc032c8d18b1463 (diff)
downloadmc-492aca3ff6f829ee09c52e17c86a808430ee7df4.tar.gz
Convert from `in` to `:`.
The winds of change are a-blowin.
Diffstat (limited to 'mbld/clean.myr')
-rw-r--r--mbld/clean.myr12
1 files changed, 6 insertions, 6 deletions
diff --git a/mbld/clean.myr b/mbld/clean.myr
index 1e317fe..234d980 100644
--- a/mbld/clean.myr
+++ b/mbld/clean.myr
@@ -14,14 +14,14 @@ pkg bld =
;;
const cleanall = {b
- for tn in b.all
+ for tn : b.all
match gettarg(b.targs, tn)
| `Bin bt:
cleanup(b, bt, bt.inputs)
| `Lib lt:
cleanup(b, lt, lt.inputs)
| `Gen gt:
- for f in gt.out
+ for f : gt.out
if !gt.durable && std.remove(f)
mbldput("\tclean {}\n", f)
;;
@@ -35,7 +35,7 @@ const cleanall = {b
}
const clean = {b, targ
- for tn in b.all
+ for tn : b.all
match gettarg(b.targs, tn)
| `Bin bt:
if std.sleq(bt.name, targ)
@@ -46,7 +46,7 @@ const clean = {b, targ
cleanup(b, lt, lt.inputs)
;;
| `Gen gt:
- for f in gt.out
+ for f : gt.out
if !gt.durable && std.remove(f)
mbldput("\tclean {}\n", f)
;;
@@ -74,12 +74,12 @@ const cleanup = {b, targ, leaves
setdir(b, targ.dir)
dg = myrdeps(b, targ, true, true)
mchammer_files = std.mkht(std.strhash, std.streq)
- for l in leaves
+ for l : leaves
std.htput(mchammer_files, l, true)
;;
keys = std.htkeys(dg.deps)
- for k in keys
+ for k : keys
if !std.htgetv(mchammer_files, k, false) && std.remove(k)
mbldput("\tclean {}\n", k)
;;