10 xs := (input_byte ch)::!xs
12 failwith "must not happen"
17 if Filename.check_suffix path ".abc" then
18 [open_in_with path (Abc.read $ Swflib.BytesIn.of_channel)]
19 else if Filename.check_suffix path ".swf" then
20 (open_in_with path Swf.read).tags
21 +> filter_map (function `DoABC (_,_,abc) -> Some abc | _ -> None)
23 failwithf "unknow suffix: %s" path ()
27 CmdOpt.parse_argv () in
29 HList.concat_map read paths
30 +> HList.fold_left1 Link.link
33 Template.make t abc in
34 open_out_with t#output (fun ch -> Swf.write ch swf)