1 ; support for dividing arc files into sections of different level, and
2 ; selectively loading just sections at or less than a given level
5 ; load.arc [level] [arc files] -- [mu files]
7 (def selective-load
(file
(o level
999))
8 ;? (prn "loading @file at level @level")
12 (if (is 'section expr
.0)
13 (when (<= expr
.1 level
)
17 ;? (prn car.expr " done")
22 (each x
(map [fromstring _
(read)] cdr.argv
)
26 (break
) ; later args are mu files
28 (selective-load
string.x section-level
))))