mkrules: Handle multiple files with the same metrics.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Jan 2012 23:59:05 +0000 (23:59 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 11 Jan 2012 01:35:52 +0000 (01:35 +0000)
commitfe6a7d791ffe20cb0cf74a22e2c024dc6319574e
tree57acddd1c3dc209eee2cbeec928f423748f17834
parent3f83ea0cf02da40a96b5d27f8fa38fbe2bda871c
mkrules: Handle multiple files with the same metrics.

If we had two PCF files with the same metrics previously, we'd overwrite
the rules file from the first with a new file from the second.  Keep
track of which files we've written during the run, and append to them if
we've already started writing.  Finish them all up at the end.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
mkrules