mozilla/rust — pull request #11490 by wting (2014-01-12 03:07:21+00:00)
Title: Update extract-tests.py to use same test directives as rustdoc.

Refactored the file quite a bit, I can add unit tests if desired. There's a few changes from the previous version's behavior:

- destination directory will be created if it doesn't exist
- strings and file is written as unicode

I have a few questions, but will ask them in #11362.