Given a root directory, collects list of styles used by files beneath root, counts number of files of each style, and produces list of files with mesa style. List of mesa files is placed in MesaStyleFiles.log, and style counts in StyleList.log.
DIRECTORY
Atom USING [GetPropFromList],
Commander USING [CommandProc, Register],
CommandTool USING [ArgumentVector, Parse],
FileNames USING [ResolveRelativePath],
IO USING [int, PutF, rope, STREAM, Flush],
FS USING [StreamOpen, OpenFileFromStream, Close, EnumerateForNames, NameProc, ExpandName, ComponentPositions, Error],
TiogaAccess USING [FromFile, GetExternalProp, GetNodeProps, Reader, DoneWith],
SymTab USING [Create, EachPairAction, Fetch, Pairs, Ref, Store, Val],
IF Rope.Equal[Rope.Substr[fullFName, positions.ext.start, positions.ext.length], "bcd", FALSE] OR Rope.Equal[Rope.Substr[fullFName, positions.ext.start, positions.ext.length], "press", FALSE] THEN RETURN[TRUE];
reader ← TiogaAccess.FromFile[fullFName ! FS.Error => GO TO Error];
Copyright © 1985 by Xerox Corporation. All rights reserved.
Matt Kaplan, July 22, 1985 1:07:26 pm PDT